From f27f579358d2c12fc3926bfd5bb95ef3e08ca6a7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 2 Apr 2019 15:09:44 +0200 Subject: 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. --- tests/file/testscript | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/file') 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 <=test.cli; +"'foo bar'" +'"foo bar"' +EOI +$* --file test.cli >>EOO +'foo bar' +"foo bar" +EOO -- cgit v1.1