aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcppawk3
1 files changed, 2 insertions, 1 deletions
diff --git a/cppawk b/cppawk
index 867308a..c45f6ef 100755
--- a/cppawk
+++ b/cppawk
@@ -158,8 +158,9 @@ trap 'rm -f $tmp_file' EXIT INT TERM
if [ -n "$awk_file" ] ; then
tmp_file=$(mktemp)
+ awk_file_dir=$(dirname "$awk_file")
$delhashbang "$awk_file" | \
- eval "$prepro $incopt"'"$(dirname "$awk_file")" '"$prepro_opts -" | \
+ eval "$prepro $incopt\"$awk_file_dir\" $prepro_opts -" | \
collapse > $tmp_file
[ $prepro_only ] \
&& cat $tmp_file \