diff options
-rwxr-xr-x | cppawk | 16 | ||||
-rw-r--r-- | testcases | 5 |
2 files changed, 21 insertions, 0 deletions
@@ -151,6 +151,22 @@ while [ $# -gt 0 ] ; do shift done +case $awk in + 'command '* ) + ;; + * ) + awk="command $awk" + ;; +esac + +case $prepro in + 'command '* ) + ;; + * ) + prepro="command $prepro" + ;; +esac + trap 'rm -f $tmp_file' EXIT INT TERM if [ -n "$awk_file" ] ; then @@ -198,3 +198,8 @@ mawk=1 ./cppawk --prepro-only --awk=mawk gawk=__gawk__ | grep gawk : gawk=__gawk__ +-- +36: +./cppawk --prepro=die --prepro-only x 2>&1 | grep 'not found' +: +./cppawk: 1: eval: die: not found |