1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-08 12:01:21 +02:00

49594: adapt to changes in 49499 to ensure file modes starting with dash aren't taken to be flags

This commit is contained in:
Oliver Kiddle 2021-11-19 21:54:50 +01:00
parent 8cf76fb8f9
commit 973e356c34
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2021-11-19 Oliver Kiddle <opk@zsh.org>
* 49594: Completion/Unix/Command/_chmod: adapt to changes in 49499
to ensure file modes starting with dash aren't taken to be flags
* 49584: Completion/Unix/Command/_gem: allow for build options
in gem install completion

View file

@ -1,7 +1,10 @@
#compdef chmod gchmod zf_chmod
local curcontext="$curcontext" state line expl ret=1 variant
local -a args privs aopts=( -A '-*' )
local -a args privs aopts
# usual -* pattern picks up valid non-options, e.g. -x which is like a-x
aopts=( -A '-[^gorstuwxX]*' )
args=( '*: :->files' '1: :_file_modes' )