From 80a02c10aa85c1b57376faede83cb90a8079c5d7 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 28 Sep 2017 00:58:21 +0200 Subject: 41772: fix bug in handling of long options with _arguments' -A option --- Test/Y03arguments.ztst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Test') 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 -- cgit 1.4.1