diff options
Diffstat (limited to 'test/rtlen01.sh')
-rwxr-xr-x | test/rtlen01.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rtlen01.sh b/test/rtlen01.sh new file mode 100755 index 00000000..72156d9b --- /dev/null +++ b/test/rtlen01.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +AWK=${AWK:-../gawk} + +$AWK 'BEGIN {printf "0"; exit}' | $AWK 'BEGIN {RS=""}; {print length(RT)}' +$AWK 'BEGIN {printf "0\n"; exit}' | $AWK 'BEGIN {RS=""}; {print length(RT)}' +$AWK 'BEGIN {printf "0\n\n"; exit}' | $AWK 'BEGIN {RS=""}; {print length(RT)}' + |