diff options
Diffstat (limited to 'bash-completion')
-rw-r--r-- | bash-completion/rc-service | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bash-completion/rc-service b/bash-completion/rc-service index 4e9e076e..de936399 100644 --- a/bash-completion/rc-service +++ b/bash-completion/rc-service @@ -92,13 +92,11 @@ _rc_service() return 0 elif [[ ${COMP_CWORD} -eq 2 ]] && [[ ${prev} != -* ]]; then # if second word typed and we didn't type in a function rc-service --exists "$prev" || return - shopt -s extglob while read -r _ line; do if [[ $line == +([[:alnum:]_]):* ]]; then opts+="${line%%:*} " fi done < <(rc-service "$prev" describe 2>&1) - shopt -u extglob COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 fi |