aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcppawk4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppawk b/cppawk
index 1b2f1d6..9998b57 100755
--- a/cppawk
+++ b/cppawk
@@ -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"