[Bash-completion-commits] [bash-completion] 02/02: tune2fs: Add missing return in -M arg completion

Ville Skyttä scop-guest at moszumanska.debian.org
Tue Feb 3 05:57:51 UTC 2015


This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit edea6cb6da246930c1314384ba2f150efd0c07d5
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Feb 3 07:56:44 2015 +0200

    tune2fs: Add missing return in -M arg completion
---
 bash_completion     | 2 +-
 completions/tune2fs | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/bash_completion b/bash_completion
index 8c9fc81..e707ff5 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1963,7 +1963,7 @@ _completion_loader()
     local cmd="${1:-_EmptycmD_}" compdir=./completions compfile
     [[ $BASH_SOURCE == */* ]] && compdir="${BASH_SOURCE%/*}/completions"
 
-    for compfile in "${cmd##*/}" _"${cmd##*/}"; do
+    for compfile in "${cmd##*/}" "${cmd##*/}".bash _"${cmd##*/}"; do
         compfile="$compdir/$compfile"
         # Avoid trying to source dirs; https://bugzilla.redhat.com/903540
         [[ -f "$compfile" ]] && . "$compfile" &>/dev/null && return 124
diff --git a/completions/tune2fs b/completions/tune2fs
index ee88b45..6396a16 100644
--- a/completions/tune2fs
+++ b/completions/tune2fs
@@ -20,6 +20,7 @@ _tune2fs()
             ;;
         -M)
             _filedir -d
+            return 0
             ;;
         -o)
             local -a opts=(^debug ^bsdgroups ^user_xattr ^acl ^uid16

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list