diff options
-rwxr-xr-x | cppawk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -126,7 +126,7 @@ if [ -n "$awk_file" ] ; then eval '$prepro $incopt"$(dirname "$awk_file")" '"$prepro_opts -" > $tmp_file [ $prepro_only ] \ && cat $tmp_file \ - || eval "$awk $awk_opts -f $tmp_file" "$@" + || eval "$awk $awk_opts -f $tmp_file -- \"\$@\"" elif [ $# -gt 0 ] ; then tmp_file=$(mktemp) if [ $prepro_only ] ; then @@ -136,7 +136,7 @@ elif [ $# -gt 0 ] ; then printf "%s" "$1" | $delhashbang | \ eval '$prepro $incopt"$(pwd)" '"$prepro_opts -" > $tmp_file shift - eval "$awk $awk_opts -f $tmp_file \"\$@\"" + eval "$awk $awk_opts -f $tmp_file -- \"\$@\"" fi else die "awk code must be specified" |