diff options
Diffstat (limited to 'Test')
-rw-r--r-- | Test/Y03arguments.ztst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Test/Y03arguments.ztst b/Test/Y03arguments.ztst index fa4589374..a815799b3 100644 --- a/Test/Y03arguments.ztst +++ b/Test/Y03arguments.ztst @@ -231,9 +231,15 @@ tst_arguments '-a:one: :two' ':descr:{compadd -Q - $opt_args[-a]}' comptest $'tst -a 1:x \\2 \t' -0:opt_args with multiple arguments and quoting of colons and backslashes +0:opt_args with multiple arguments and quoting of colons and backslashes, part #1: default behaviour >line: {tst -a 1:x \2 1\:x:\\2 }{} + # Same as previous test, except with -0 and (qqqq) added + tst_arguments -0 : '-a:one: :two' ':descr:{compadd -Q - ${(qqqq)opt_args[-a]}}' + comptest $'tst -a 1:x \\2 \t' +0:opt_args with multiple arguments and quoting of colons and backslashes, part #2: NUL escaping +>line: {tst -a 1:x \2 $'1:x\0\\2' }{} + tst_arguments -a -b comptest $'tst rest -\t\C-w\eb\C-b-\t' 0:option completion with rest arguments on the line but not in the specs |