diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-01-30 10:06:16 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-01-30 10:06:16 +0200 |
commit | 1bd1b885c7dd16b5e4ab78c040312f6f7d742784 (patch) | |
tree | d7e1c0c8dfdf4002d9a0c7f4bf634cafe2663a42 /test/exit.sh | |
parent | 5153d0f04b7ad460b23ae5a011061f7b93a122ef (diff) | |
download | egawk-1bd1b885c7dd16b5e4ab78c040312f6f7d742784.tar.gz egawk-1bd1b885c7dd16b5e4ab78c040312f6f7d742784.tar.bz2 egawk-1bd1b885c7dd16b5e4ab78c040312f6f7d742784.zip |
Disallow calling a function parameter. Check params are not function names.
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 |