[Bash-completion-commits] [bash-completion] 01/03: Quote _filedir arguments when appropriate to prevent failglob failures

Igor Murzov garik-guest at moszumanska.debian.org
Wed Jun 4 22:11:36 UTC 2014


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

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

commit 8566a5a89633a6d689192638410914910e2a1523
Author: Igor Murzov <e-mail at date.by>
Date:   Thu Jun 5 00:42:11 2014 +0400

    Quote _filedir arguments when appropriate to prevent failglob failures
---
 completions/cppcheck   | 2 +-
 completions/installpkg | 2 +-
 completions/k3b        | 2 +-
 completions/sqlite3    | 2 +-
 completions/tar        | 2 +-
 completions/upgradepkg | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/completions/cppcheck b/completions/cppcheck
index 70b92e7..2d9b0b7 100644
--- a/completions/cppcheck
+++ b/completions/cppcheck
@@ -81,7 +81,7 @@ _cppcheck()
         COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
         [[ $COMPREPLY == *= ]] && compopt -o nospace
     else
-        _filedir @([cht]pp|[cht]xx|cc|[ch]++|[ch])
+        _filedir '@([cht]pp|[cht]xx|cc|[ch]++|[ch])'
     fi
 } &&
 complete -F _cppcheck cppcheck
diff --git a/completions/installpkg b/completions/installpkg
index cdaf816..400e217 100644
--- a/completions/installpkg
+++ b/completions/installpkg
@@ -26,7 +26,7 @@ _installpkg()
         return 0
     fi
 
-    _filedir "t[bglx]z"
+    _filedir 't[bglx]z'
 } && complete -F _installpkg installpkg
 
 # ex: ts=4 sw=4 et filetype=sh
diff --git a/completions/k3b b/completions/k3b
index 9c03642..6dc96f0 100644
--- a/completions/k3b
+++ b/completions/k3b
@@ -23,7 +23,7 @@ _k3b()
             return 0
             ;;
         --cdimage|--image)
-            _filedir @(cue|iso|toc)
+            _filedir '@(cue|iso|toc)'
             return 0
             ;;
         --dvdimage)
diff --git a/completions/sqlite3 b/completions/sqlite3
index e97c2e9..c5bfcb6 100644
--- a/completions/sqlite3
+++ b/completions/sqlite3
@@ -22,7 +22,7 @@ _sqlite3()
         return 0
     fi
 
-    _filedir $dbexts
+    _filedir "$dbexts"
 } &&
 complete -F _sqlite3 sqlite3
 
diff --git a/completions/tar b/completions/tar
index 374e069..8d867d0 100644
--- a/completions/tar
+++ b/completions/tar
@@ -27,7 +27,7 @@ _tar()
                     *[jy]*) ext='t@(?(ar.)bz?(2)|b2)' ;;
                     *J*)    ext='t?(ar.)xz'           ;;
                 esac
-                _filedir $ext
+                _filedir "$ext"
             else
                 _filedir
             fi
diff --git a/completions/upgradepkg b/completions/upgradepkg
index f9fa23a..5fc4f4d 100644
--- a/completions/upgradepkg
+++ b/completions/upgradepkg
@@ -23,7 +23,7 @@ _upgradepkg()
         return
     fi
 
-    _filedir "t[bglx]z"
+    _filedir 't[bglx]z'
 } && complete -F _upgradepkg upgradepkg
 
 # ex: ts=4 sw=4 et filetype=sh

-- 
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