"Fossies" - the Fresh Open Source Software Archive

Member "gawk-5.1.0/test/beginfile2.ok" (10 Mar 2020, 1874 Bytes) of package /linux/misc/gawk-5.1.0.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "beginfile2.ok": 5.0.1_vs_5.1.0.

    1 --Test 1a--
    2 In BEGIN
    3 In BEGINFILE: beginfile2.in
    4 1
    5 --Test 1b--
    6 In BEGIN
    7 In BEGINFILE: beginfile2.in
    8 In BEGINFILE: file/does/not/exist
    9 gawk: cmd. line:3: fatal: cannot open file `file/does/not/exist' for reading: No such file or directory
   10 --Test 2--
   11 In BEGINFILE: beginfile2.in
   12 In ENDFILE: beginfile2.in
   13 In BEGINFILE: file/does/not/exist
   14 --Test 3--
   15 In BEGINFILE: beginfile2.in
   16 In ENDFILE: beginfile2.in
   17 executing END rule
   18 In BEGINFILE: beginfile2.sh
   19 In ENDFILE: beginfile2.sh
   20 1
   21 Done executing END rule
   22 --Test 4--
   23 In BEGINFILE: beginfile2.in
   24 ENDFILE: beginfile2.in
   25 executing END rule
   26 In BEGINFILE: beginfile2.sh
   27 ENDFILE: beginfile2.sh
   28 
   29 Done executing END rule
   30 --Test 5--
   31 1 1
   32 1
   33 --Test 6--
   34 In BEGINFILE: beginfile2.in
   35 1 1
   36 In ENDFILE: beginfile2.in
   37 1
   38 --Test 7--
   39 In BEGINFILE: beginfile2.in
   40 In ENDFILE: beginfile2.in
   41 0
   42 In BEGINFILE: beginfile2.sh
   43 In BEGIN: beginfile2.sh
   44 In ENDFILE: beginfile2.sh
   45 1
   46 --Test 8--
   47 beginfile2.in
   48 1 2
   49 --Test 9a--
   50 Skipping: 1:file/does/not/exist
   51 In BEGINFILE: 2:beginfile2.in
   52 In Rule: beginfile2.in
   53 In ENDFILE: beginfile2.in
   54 --Test 9b--
   55 Skipping: 1:file/does/not/exist
   56 Skipping: 2:beginfile2.in
   57 In ENDFILE: beginfile2.in
   58 --Test 10--
   59 82 82
   60 --Test 11--
   61 beginfile2.in
   62 beginfile2.sh
   63 gawk: cmd. line:9: fatal: non-redirected `getline' invalid inside `BEGINFILE' rule
   64 --Test 12--
   65 In BEGINFILE: beginfile2.in
   66 1
   67 0
   68 In ENDFILE: beginfile2.in
   69 In BEGINFILE: beginfile2.sh
   70 1
   71 0
   72 In ENDFILE: beginfile2.sh
   73 --Test 13--
   74 In BEGINFILE: beginfile2.in
   75 In END: beginfile2.in
   76 In ENDFILE: beginfile2.in
   77 In BEGINFILE: beginfile2.sh
   78 --Test 14--
   79 In BEGINFILE: beginfile2.in
   80 In ENDFILE: beginfile2.in
   81 In END: beginfile2.in
   82 In BEGINFILE: beginfile2.sh
   83 In ENDFILE: beginfile2.sh
   84 --Test 15--
   85 BEGINFILE: beginfile2.in
   86 BEGINFILE: beginfile2.sh
   87 2
   88 --Test 16--
   89 In BEGINFILE: beginfile2.in
   90 In BEGIN: beginfile2.in
   91 In Rule: beginfile2.in
   92 In ENDFILE:  beginfile2.in
   93 In BEGINFILE: beginfile2.sh