diff options
author | Igor Murzov <e-mail@date.by> | 2011-11-07 02:10:05 +0300 |
---|---|---|
committer | Igor Murzov <e-mail@date.by> | 2011-11-07 02:52:08 +0300 |
commit | 01477d9c9e43c04bb33e59b7c62f938ba172a33b (patch) | |
tree | dad9cf78e6558fff8fcee27d67d52602c77888b5 | |
parent | efa8a9554fcf24c3babdeee858e2592177184e11 (diff) | |
download | bash-completion-01477d9c9e43c04bb33e59b7c62f938ba172a33b.tar.gz |
/etc/rc.d and /etc/init.d are both used as init directories by different distros.
-rw-r--r-- | bash_completion | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash_completion b/bash_completion index bfd38a27..6d3ffe2f 100644 --- a/bash_completion +++ b/bash_completion @@ -1819,7 +1819,7 @@ _completion_loader() [[ $BASH_SOURCE == */* ]] && compdir="${BASH_SOURCE%/*}/completions" # Special case for init.d scripts. - if [[ $1 == /etc?(/rc.d)/init.d/* ]]; then + if [[ $1 == /etc/@(rc.d|init.d)/* ]]; then . "$compdir/service" &>/dev/null && return 124 || return 1 fi |