bash-completion/bash-completion-1.3-xspec-726220.patch
Ville Skyttä bdf5539ecd Fix ant completion when complete-ant-cmd.pl is N/A (#729771).
Fix bash < 4 _filedir_xspec uppercase expansion issue (#726220).
Drop _filedir_xspec self-parsing with bash >= 4 for speedups (#479936).
Do install triggers with lua where available to speed up package install.
Add completion for sum (#717341).
2011-08-16 00:56:55 +03:00

26 lines
884 B
Diff

From 75309e9f254ee4e5e31e85e18c782e64707a6d22 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi>
Date: Mon, 15 Aug 2011 21:55:19 +0300
Subject: [PATCH] _filedir_xspec: Don't expand $xspec while uppercasing on bash-3 (RedHat: #726220).
---
bash_completion | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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")" | {
--
1.7.2.5