diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-01-30 10:11:59 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-01-30 10:11:59 +0200 |
commit | 86cd3e2cb5117c5800997d3bb363b6d5470be3ce (patch) | |
tree | aa8c2af3fe3006e0e40186792e85a161020df66f /test/exit.sh | |
parent | 2fc1e9855f7983fb75a7f72d3ec97eec467e4709 (diff) | |
parent | 1bd1b885c7dd16b5e4ab78c040312f6f7d742784 (diff) | |
download | egawk-86cd3e2cb5117c5800997d3bb363b6d5470be3ce.tar.gz egawk-86cd3e2cb5117c5800997d3bb363b6d5470be3ce.tar.bz2 egawk-86cd3e2cb5117c5800997d3bb363b6d5470be3ce.zip |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'test/exit.sh')
-rwxr-xr-x | test/exit.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/exit.sh b/test/exit.sh index 9510dcdc..3922f83c 100755 --- a/test/exit.sh +++ b/test/exit.sh @@ -30,7 +30,7 @@ x='function f(){ exit}; BEGINFILE {f()}; NR>1{ f()}; END{print NR}' $AWK 'BEGIN { print "a\nb" }' | $AWK "$x" echo "-- 5" -y='function strip(f) { sub(/.*\//, "", f); return f };' +y='function strip(val) { sub(/.*\//, "", val); return val };' x='BEGINFILE{if(++i==1) exit;}; END{print i, strip(FILENAME)}' $AWK "$y$x" /dev/null $0 |