diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-08-15 21:55:19 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-08-15 21:55:19 +0300 |
commit | 75309e9f254ee4e5e31e85e18c782e64707a6d22 (patch) | |
tree | 23a85f6a7f89b99193ea2fbc6cc62cd30dc4e254 | |
parent | 7c81ef895455d0f7543c65789ff62808e7465578 (diff) | |
download | bash-completion-1.x.tar.gz |
_filedir_xspec: Don't expand $xspec while uppercasing on bash-3 (RedHat: #726220).1.x
-rw-r--r-- | bash_completion | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash_completion b/bash_completion index 66019379..1844e81d 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")" | { |