diff --git a/fhtagn.awk b/fhtagn.awk index b0226b8..4c5be81 100755 --- a/fhtagn.awk +++ b/fhtagn.awk @@ -77,7 +77,7 @@ function prefixFile(prefix, fname, l,res,err) { return res } function run(code,stdOutF,stdErrF) { - return system("(" code ") 1>" stdOutF " 2>" stdErrF) # can it be that {} are better than ()? + return system("{" code "\n} 1>" stdOutF " 2>" stdErrF) } function rndS() { return int(2147483647 * rand()) "." Rnd } function tmpFile(random, ext) { return sprintf("%s/%s.%s.%s", Tmp, Prog, random, ext) } diff --git a/tests/3.tush b/tests/3.tush index ee4ba2d..21ac9f3 100644 --- a/tests/3.tush +++ b/tests/3.tush @@ -5,4 +5,10 @@ testing the 2nd test goes immediately after the 1st $ echo aaa | aaa $ echo bbb -| BBB \ No newline at end of file +| BBB + +testing line with a comment +=========================== + +$ echo aaa # comment +| aaa diff --git a/tests/fhtagn.tush b/tests/fhtagn.tush index 13de1a0..257282c 100644 --- a/tests/fhtagn.tush +++ b/tests/fhtagn.tush @@ -56,7 +56,7 @@ $ cd "$MYDIR"; ALL=1 ./tests/trimBlank.sh $FHTAGN tests/1.tush tests/2.tush test | -| BBB | +| bbb | ---blank--- -| result=FAIL, failure=2, success=4, total=6, files=3 +| result=FAIL, failure=2, success=5, total=7, files=3 ? 1 $ cd "$MYDIR"; ALL=1 ./tests/trimBlank.sh $FHTAGN tests/1.tush