From fa993f68f6ca85299d816e01914629044857e56e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 18 Mar 2022 11:43:19 -0700 Subject: 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. --- testcases | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'testcases') 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:' -- cgit v1.2.3