about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2021-10-22 21:50:52 +0200
committerOliver Kiddle <opk@zsh.org>2021-12-14 12:30:55 +0100
commit7cb980b5366afd5b82b3540961ea4a2e68faab8e (patch)
treec524f615972a113fafc4531a193f392dd3c3637a /Test
parent91b7baf25929a20ee776100f406021a422d56e98 (diff)
downloadzsh-7cb980b5366afd5b82b3540961ea4a2e68faab8e.tar.gz
zsh-7cb980b5366afd5b82b3540961ea4a2e68faab8e.tar.xz
zsh-7cb980b5366afd5b82b3540961ea4a2e68faab8e.zip
49518: fix exclusions for mixed - and + stacked options
Diffstat (limited to 'Test')
-rw-r--r--Test/Y03arguments.ztst22
1 files changed, 22 insertions, 0 deletions
diff --git a/Test/Y03arguments.ztst b/Test/Y03arguments.ztst
index ef7a0ec56..200c83e8c 100644
--- a/Test/Y03arguments.ztst
+++ b/Test/Y03arguments.ztst
@@ -102,6 +102,28 @@
 >NO:{+o}
 >NO:{-o}
 
+ tst_arguments -s -{a,b,c} \!-{d,e,f} \!+{d,e,f}
+ comptest $'tst -ad\t\024\t\bef\t'
+0:mix of + and - and exclusion of stacked options
+>line: {tst -ad}{}
+>DESCRIPTION:{option}
+>NO:{-b}
+>NO:{-c}
+>line: {tst -da}{}
+>DESCRIPTION:{option}
+>NO:{-b}
+>NO:{-c}
+>line: {tst -def}{}
+>DESCRIPTION:{option}
+>NO:{-a}
+>NO:{-b}
+>NO:{-c}
+
+ tst_arguments -s -{a,b,c} +{a,b,c}
+ comptest $'tst -a +b +c\t'
+0:mix of + and - and exclusion of stacked options
+>line: {tst -a +b +ca}{}
+
  tst_arguments '-o:1:(a):2:(b)'
  comptest $'tst \t\t\t'
 0:two option arguments