[Bash-completion-commits] [SCM] bash-completion branch, 1.x, updated. 1.3-1-g75309e9
Ville Skyttä
ville.skytta at iki.fi
Mon Aug 15 18:57:03 UTC 2011
The following commit has been merged in the 1.x branch:
commit 75309e9f254ee4e5e31e85e18c782e64707a6d22
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Aug 15 21:55:19 2011 +0300
_filedir_xspec: Don't expand $xspec while uppercasing on bash-3 (RedHat: #726220).
diff --git a/bash_completion b/bash_completion
index 6601937..1844e81 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1616,7 +1616,7 @@ _filedir_xspec()
fi
[[ ${BASH_VERSINFO[0]} -ge 4 ]] && \
xspec="$matchop($xspec|${xspec^^})" || \
- xspec="$matchop($xspec|$(printf %s $xspec | tr '[:lower:]' '[:upper:]'))"
+ xspec="$matchop($xspec|$(tr '[:lower:]' '[:upper:]' <<<$xspec))"
toks=( ${toks[@]-} $(
eval compgen -f -X "!$xspec" -- "\$(quote_readline "\$cur")" | {
--
bash-completion
More information about the Bash-completion-commits
mailing list