diff options
author | Oliver Kiddle <opk@zsh.org> | 2017-09-28 00:58:21 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2017-09-28 09:31:35 +0200 |
commit | 80a02c10aa85c1b57376faede83cb90a8079c5d7 (patch) | |
tree | 9532826b76ac58ca0b15c42dbbe691b25c768a1f /Test | |
parent | 9b4962a7720b908479ad1044b1ecc83eb7832262 (diff) | |
download | zsh-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.ztst | 6 |
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 |