Blame bash-completion-1.3-xspec-726220.patch
|
Ville Skyttä |
bdf553 |
From 75309e9f254ee4e5e31e85e18c782e64707a6d22 Mon Sep 17 00:00:00 2001
|
|
Ville Skyttä |
bdf553 |
From: =?utf8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi>
|
|
Ville Skyttä |
bdf553 |
Date: Mon, 15 Aug 2011 21:55:19 +0300
|
|
Ville Skyttä |
bdf553 |
Subject: [PATCH] _filedir_xspec: Don't expand $xspec while uppercasing on bash-3 (RedHat: #726220).
|
|
Ville Skyttä |
bdf553 |
|
|
Ville Skyttä |
bdf553 |
---
|
|
Ville Skyttä |
bdf553 |
bash_completion | 2 +-
|
|
Ville Skyttä |
bdf553 |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
Ville Skyttä |
bdf553 |
|
|
Ville Skyttä |
bdf553 |
diff --git a/bash_completion b/bash_completion
|
|
Ville Skyttä |
bdf553 |
index 6601937..1844e81 100644
|
|
Ville Skyttä |
bdf553 |
--- a/bash_completion
|
|
Ville Skyttä |
bdf553 |
+++ b/bash_completion
|
|
Ville Skyttä |
bdf553 |
@@ -1616,7 +1616,7 @@ _filedir_xspec()
|
|
Ville Skyttä |
bdf553 |
fi
|
|
Ville Skyttä |
bdf553 |
[[ ${BASH_VERSINFO[0]} -ge 4 ]] && \
|
|
Ville Skyttä |
bdf553 |
xspec="$matchop($xspec|${xspec^^})" || \
|
|
Ville Skyttä |
bdf553 |
- xspec="$matchop($xspec|$(printf %s $xspec | tr '[:lower:]' '[:upper:]'))"
|
|
Ville Skyttä |
bdf553 |
+ xspec="$matchop($xspec|$(tr '[:lower:]' '[:upper:]' <<<$xspec))"
|
|
Ville Skyttä |
bdf553 |
|
|
Ville Skyttä |
bdf553 |
toks=( ${toks[@]-} $(
|
|
Ville Skyttä |
bdf553 |
eval compgen -f -X "!$xspec" -- "\$(quote_readline "\$cur")" | {
|
|
Ville Skyttä |
bdf553 |
--
|
|
Ville Skyttä |
bdf553 |
1.7.2.5
|
|
Ville Skyttä |
bdf553 |
|