diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-04-02 15:09:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-04-02 15:09:44 +0200 |
commit | f27f579358d2c12fc3926bfd5bb95ef3e08ca6a7 (patch) | |
tree | 7d7c6dcb3aaaf7d6b39d05a9670bfe6d23e5dc9a /tests/file/testscript | |
parent | fcaeaa235b10a6f7acaa32c8698680ec97076b07 (diff) |
Handle combined option values in argv_file_scanner
Turns out we cannot just pass them along as combined because of quoting.
While at it, also add support for quoting non-option arguments.
Diffstat (limited to 'tests/file/testscript')
-rw-r--r-- | tests/file/testscript | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/file/testscript b/tests/file/testscript index 4cf35e2..3f9d43b 100644 --- a/tests/file/testscript +++ b/tests/file/testscript @@ -239,3 +239,14 @@ EOI $* --file test.cli 2>>EOE unmatched quote in argument ''abc"' EOE + +: quoted-argument +: +cat <<EOI >=test.cli; +"'foo bar'" +'"foo bar"' +EOI +$* --file test.cli >>EOO +'foo bar' +"foo bar" +EOO |