diff options
author | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-04-05 11:14:58 +0200 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-04-05 11:14:58 +0200 |
commit | 25da576c292b7ff84a34fa8aee70ff7c7d9e2ba1 (patch) | |
tree | 02f3ee707137e4b04526e6963a611a81add4c93b /Test/Y03arguments.ztst | |
parent | 35734810d1b042ca1fb4508ae3813ef999ff1aa9 (diff) | |
download | zsh-25da576c292b7ff84a34fa8aee70ff7c7d9e2ba1.tar.gz zsh-25da576c292b7ff84a34fa8aee70ff7c7d9e2ba1.tar.xz zsh-25da576c292b7ff84a34fa8aee70ff7c7d9e2ba1.zip |
42575: fix to not complete options in the argument to another option
Diffstat (limited to 'Test/Y03arguments.ztst')
-rw-r--r-- | Test/Y03arguments.ztst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/Y03arguments.ztst b/Test/Y03arguments.ztst index 761b4b1d2..fa4589374 100644 --- a/Test/Y03arguments.ztst +++ b/Test/Y03arguments.ztst @@ -184,6 +184,12 @@ 0:sticky option argument >line: {tst -x }{} + tst_arguments '-x:arg' -y -z + comptest $'tst -x -\t' +0:option argument with prefix that passes option prefix-needed test +>line: {tst -x -}{} +>DESCRIPTION:{arg} + tst_arguments '-x[desc]' comptest $'tst -x\t' 0:end of option sequence @@ -721,6 +727,15 @@ F:shouldn't offer -t in the first case (with stacked options) >line: {tst --prefix=one }{} >line: {tst --prefix=one --prop=}{} + tst_arguments -s -W -a+:arg -b + comptest $'tst -a\t' +0:with -W options mixed with arguments +>line: {tst -a}{} +>DESCRIPTION:{arg} +>DESCRIPTION:{option} +>NO:{-b} + + %clean zmodload -ui zsh/zpty |