summaryrefslogtreecommitdiff
path: root/completions/getconf
diff options
context:
space:
mode:
Diffstat (limited to 'completions/getconf')
-rw-r--r--completions/getconf14
1 files changed, 7 insertions, 7 deletions
diff --git a/completions/getconf b/completions/getconf
index 6e86e9de..de1ad2d6 100644
--- a/completions/getconf
+++ b/completions/getconf
@@ -11,22 +11,22 @@ _getconf()
return
;;
-v)
- COMPREPLY=( $(compgen -W \
+ COMPREPLY=($(compgen -W \
'$("$1" -a 2>/dev/null | awk "{ print \$1 }")' -- \
- "${cur:-POSIX_V}") )
+ "${cur:-POSIX_V}"))
return
;;
esac
- if [[ $prev == PATH_MAX ]]; then # TODO more path vars, better handling
+ if [[ $prev == PATH_MAX ]]; then # TODO more path vars, better handling
_filedir
elif [[ $cur == -* ]]; then
- COMPREPLY=( $(compgen -W '-a -v' -- "$cur") )
+ COMPREPLY=($(compgen -W '-a -v' -- "$cur"))
else
- COMPREPLY=( $(compgen -W \
- '$("$1" -a 2>/dev/null | awk "{ print \$1 }")' -- "$cur") )
+ COMPREPLY=($(compgen -W \
+ '$("$1" -a 2>/dev/null | awk "{ print \$1 }")' -- "$cur"))
fi
} &&
-complete -F _getconf getconf
+ complete -F _getconf getconf
# ex: filetype=sh