aboutsummaryrefslogtreecommitdiffstats
path: root/testcases
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-03-18 11:43:19 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-03-18 11:43:19 -0700
commitfa993f68f6ca85299d816e01914629044857e56e (patch)
tree047531aa57bcb756ad324ea5455aa683fd649721 /testcases
parentf73a6746c99bbd32eeb534125baaf14a9d6e9f06 (diff)
downloadcppawk-fa993f68f6ca85299d816e01914629044857e56e.tar.gz
cppawk-fa993f68f6ca85299d816e01914629044857e56e.tar.bz2
cppawk-fa993f68f6ca85299d816e01914629044857e56e.zip
Fix broken options quoting system.
Unquoting can't just be done with an interpolation into the command line; we have to construct an entire command as shell syntax and eval the whole thing.
Diffstat (limited to 'testcases')
-rw-r--r--testcases10
1 files changed, 10 insertions, 0 deletions
diff --git a/testcases b/testcases
index 8011eca..1dd1f52 100644
--- a/testcases
+++ b/testcases
@@ -126,3 +126,13 @@ BEGIN { }
./cppawk -f testdir/program.cwk
:
73
+--
+22:
+./cppawk -v foo="abc def" 'BEGIN { print foo }'
+:
+abc def
+--
+23:
+./cppawk 'BEGIN { printf("%s:%s:%s\n", ARGC, ARGV[1], ARGV[2]) }' "ab c" "'"
+:
+3:ab c:'