summaryrefslogtreecommitdiff
path: root/completions/autoreconf
diff options
context:
space:
mode:
Diffstat (limited to 'completions/autoreconf')
-rw-r--r--completions/autoreconf22
1 files changed, 11 insertions, 11 deletions
diff --git a/completions/autoreconf b/completions/autoreconf
index cf983312..9b0f0dc9 100644
--- a/completions/autoreconf
+++ b/completions/autoreconf
@@ -6,17 +6,17 @@ _autoreconf()
_init_completion -s || return
case "$prev" in
- --help|-h|--version|-V)
+ --help | -h | --version | -V)
return
;;
- --warnings|-W)
- local cats=( cross gnu obsolete override portability syntax \
- unsupported )
- COMPREPLY=( $(compgen -W \
- '${cats[@]} ${cats[@]/#/no-} all none error' -- "$cur") )
+ --warnings | -W)
+ local cats=(cross gnu obsolete override portability syntax
+ unsupported)
+ COMPREPLY=($(compgen -W \
+ '${cats[@]} ${cats[@]/#/no-} all none error' -- "$cur"))
return
;;
- --prepend-include|-B|--include|-I)
+ --prepend-include | -B | --include | -I)
_filedir -d
return
;;
@@ -24,9 +24,9 @@ _autoreconf()
$split && return
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
- [[ $COMPREPLY == *= ]] && compopt -o nospace
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
+ [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
return
fi
@@ -36,6 +36,6 @@ _autoreconf()
_filedir -d
fi
} &&
-complete -F _autoreconf autoreconf autoheader
+ complete -F _autoreconf autoreconf autoheader
# ex: filetype=sh