[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1421e55aac075e13491cd212b796bdd453214a2c
Mike Kelly
pioto at pioto.org
Thu Apr 2 15:19:13 UTC 2009
The following commit has been merged in the master branch:
commit 1421e55aac075e13491cd212b796bdd453214a2c
Author: Mike Kelly <pioto at pioto.org>
Date: Thu Apr 2 11:16:46 2009 -0400
Fix _filedir on bash 4.
We don't need to double-quote things for compgen w/ bash 4. Just putting
each file in double quotes is sufficient.
See: http://lists.gnu.org/archive/html/bug-bash/2009-03/msg00155.html
diff --git a/bash_completion b/bash_completion
index 0246cd8..4d21cf8 100644
--- a/bash_completion
+++ b/bash_completion
@@ -209,6 +209,12 @@ quote()
# results in the original argument
quote_readline()
{
+ if [[ "${BASH_VERSINFO[0]}" -ge 4 ]] ; then
+ # This function isn't really necessary on bash 4
+ # See: http://lists.gnu.org/archive/html/bug-bash/2009-03/msg00155.html
+ echo "${1}"
+ return
+ fi
local t="${1//\\/\\\\}"
echo \'${t//\'/\'\\\'\'}\' #'# Help vim syntax highlighting
}
--
bash-completion
More information about the Bash-completion-commits
mailing list