summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2017-09-28 00:58:21 +0200
committerOliver Kiddle <opk@zsh.org>2017-09-28 09:31:35 +0200
commit80a02c10aa85c1b57376faede83cb90a8079c5d7 (patch)
tree9532826b76ac58ca0b15c42dbbe691b25c768a1f /Test
parent9b4962a7720b908479ad1044b1ecc83eb7832262 (diff)
downloadzsh-80a02c10aa85c1b57376faede83cb90a8079c5d7.tar.gz
zsh-80a02c10aa85c1b57376faede83cb90a8079c5d7.tar.xz
zsh-80a02c10aa85c1b57376faede83cb90a8079c5d7.zip
41772: fix bug in handling of long options with _arguments' -A option
Diffstat (limited to 'Test')
-rw-r--r--Test/Y03arguments.ztst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/Y03arguments.ztst b/Test/Y03arguments.ztst
index 25bb96b84..94ce8361e 100644
--- a/Test/Y03arguments.ztst
+++ b/Test/Y03arguments.ztst
@@ -333,6 +333,12 @@
 0:option after a word
 >line: {tst word -x }{}
 
+ tst_arguments -A '-*' -x --extra ::first
+ comptest $'tst word -\t'
+0:long option after word that doesn't match -A pattern
+>line: {tst word -}{}
+>MESSAGE:{no more arguments}
+
  tst_arguments -A'-*' -x :word
  comptest $'tst word -\t'
 0:option after word that doesn't match -A pattern, no space before pattern