summaryrefslogtreecommitdiff
path: root/completions/aclocal
diff options
context:
space:
mode:
Diffstat (limited to 'completions/aclocal')
-rw-r--r--completions/aclocal18
1 files changed, 9 insertions, 9 deletions
diff --git a/completions/aclocal b/completions/aclocal
index f0cc6114..010862fb 100644
--- a/completions/aclocal
+++ b/completions/aclocal
@@ -6,10 +6,10 @@ _aclocal()
_init_completion -s || return
case "$prev" in
- --help|--print-ac-dir|--version)
+ --help | --print-ac-dir | --version)
return
;;
- --acdir|-I)
+ --acdir | -I)
_filedir -d
return
;;
@@ -17,19 +17,19 @@ _aclocal()
_filedir
return
;;
- --warnings|-W)
- local cats=( syntax unsupported )
- COMPREPLY=( $(compgen -W \
- '${cats[@]} ${cats[@]/#/no-} all none error' -- "$cur") )
+ --warnings | -W)
+ local cats=(syntax unsupported)
+ COMPREPLY=($(compgen -W \
+ '${cats[@]} ${cats[@]/#/no-} all none error' -- "$cur"))
return
;;
esac
$split && return
- COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
- [[ $COMPREPLY == *= ]] && compopt -o nospace
+ COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
+ [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
} &&
-complete -F _aclocal aclocal aclocal-1.1{0..6}
+ complete -F _aclocal aclocal aclocal-1.1{0..6}
# ex: filetype=sh