diff options
| author | dana <dana@dana.is> | 2019-04-26 17:48:30 -0500 |
|---|---|---|
| committer | dana <dana@dana.is> | 2019-04-26 17:48:30 -0500 |
| commit | 860bcdd5615996640bc1680596f3af8636d9c84e (patch) | |
| tree | 5fef584f6a9c9ca849154fb5fb3c85262e45869e /Completion/Unix/Command/_chmod | |
| parent | 44249: Completion: Handle zsh/files built-ins in _mv and _rmdir (diff) | |
| download | zsh-860bcdd5615996640bc1680596f3af8636d9c84e.tar zsh-860bcdd5615996640bc1680596f3af8636d9c84e.tar.gz zsh-860bcdd5615996640bc1680596f3af8636d9c84e.tar.bz2 zsh-860bcdd5615996640bc1680596f3af8636d9c84e.tar.lz zsh-860bcdd5615996640bc1680596f3af8636d9c84e.tar.xz zsh-860bcdd5615996640bc1680596f3af8636d9c84e.tar.zst zsh-860bcdd5615996640bc1680596f3af8636d9c84e.zip | |
44250: Completion: Fix use of -A and -S options to _arguments
Diffstat (limited to 'Completion/Unix/Command/_chmod')
| -rw-r--r-- | Completion/Unix/Command/_chmod | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_chmod b/Completion/Unix/Command/_chmod index e39cfd8ee..f72055b17 100644 --- a/Completion/Unix/Command/_chmod +++ b/Completion/Unix/Command/_chmod @@ -1,7 +1,7 @@ #compdef chmod gchmod zf_chmod local curcontext="$curcontext" state line expl ret=1 variant -local -a args privs +local -a args privs aopts=( -A '-*' ) args=( '*: :->files' '1: :_file_modes' ) @@ -17,6 +17,7 @@ case "$variant" in ) ;; gnu) + aopts=() args+=( '(-v --verbose -c --changes)'{-c,--changes}'[report changes made]' '(-v --verbose -c --changes)'{-v,--verbose}'[output a diagnostic for every file processed]' @@ -63,7 +64,7 @@ case "$variant" in ;; esac -_arguments -C -s "$args[@]" && ret=0 +_arguments -C -s -S $aopts "$args[@]" && ret=0 case "$state" in files) |
