diff options
author | Oliver Kiddle <opk@zsh.org> | 2017-11-04 00:57:48 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2017-11-04 00:57:48 +0100 |
commit | 1bfcff129d27314d2b5b08117a61e67912fafc2d (patch) | |
tree | 0fca417416df265a14c6e4743dc9aa4fe9dcd79a /Test | |
parent | 5498e0cb9e88729162015934dde8318038afee88 (diff) | |
download | zsh-1bfcff129d27314d2b5b08117a61e67912fafc2d.tar.gz zsh-1bfcff129d27314d2b5b08117a61e67912fafc2d.tar.xz zsh-1bfcff129d27314d2b5b08117a61e67912fafc2d.zip |
41983: fix exclusion of long options with (-) on a normal argument
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 de495ee6c..7cbadfe8c 100644 --- a/Test/Y03arguments.ztst +++ b/Test/Y03arguments.ztst @@ -485,12 +485,18 @@ >NO:{-c} >NO:{-g} - tst_arguments '(-)-h' -a -b -c + tst_arguments '(-)-h' -a -b -c --long +p comptest $'tst -h -\t' 0:exclude all other options >line: {tst -h -}{} >MESSAGE:{no arguments} + tst_arguments --args -b -c +p '(-)1:normal' + comptest $'tst arg -\t' +0:exclude all options from a normal argument +>line: {tst arg -}{} +>MESSAGE:{no more arguments} + tst_arguments -a '(-a)-b' comptest $'tst - -b\C-b\C-b\C-b\t' 0:exclusion only applies to later words |