about summary refs log tree commit diff
path: root/Completion/Unix/Command/_chmod
diff options
context:
space:
mode:
authordana <dana@dana.is>2019-04-26 17:48:30 -0500
committerdana <dana@dana.is>2019-04-26 17:48:30 -0500
commit860bcdd5615996640bc1680596f3af8636d9c84e (patch)
tree5fef584f6a9c9ca849154fb5fb3c85262e45869e /Completion/Unix/Command/_chmod
parentd56a43f80296eb2e6ce690ce4012429c4e67975a (diff)
downloadzsh-860bcdd5615996640bc1680596f3af8636d9c84e.tar.gz
zsh-860bcdd5615996640bc1680596f3af8636d9c84e.tar.xz
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/_chmod5
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)