diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-03-18 11:43:19 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-03-18 11:43:19 -0700 |
commit | fa993f68f6ca85299d816e01914629044857e56e (patch) | |
tree | 047531aa57bcb756ad324ea5455aa683fd649721 /testcases | |
parent | f73a6746c99bbd32eeb534125baaf14a9d6e9f06 (diff) | |
download | cppawk-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-- | testcases | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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:' |