From 436109044cfd0a0b5e47b630c866773fc6745a44 Mon Sep 17 00:00:00 2001 From: Roman Rakus Date: Wed, 16 Feb 2011 12:27:57 +0100 Subject: [PATCH] Pattern matching glitch patch from upstream See http://lists.gnu.org/archive/html/bug-bash/2011-02/msg00136.html var='[hello' echo "${var//[/}" With bash 4.1 it outputs hello but with 4.2 it outputs [hello This commit fixes it. Signed-off-by: Roman Rakus --- bash.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bash.spec b/bash.spec index d80cfd1..b41373d 100644 --- a/bash.spec +++ b/bash.spec @@ -6,7 +6,7 @@ Version: %{baseversion}%{patchleveltag} Name: bash Summary: The GNU Bourne Again shell -Release: 1%{?dist} +Release: 2%{?dist} Group: System Environment/Shells License: GPLv3+ Url: http://www.gnu.org/software/bash @@ -54,6 +54,10 @@ Patch126: bash-4.1-broken_pipe.patch # Enable system-wide .bash_logout for login shells Patch127: bash-4.2-rc2-logout.patch +# Patch from upstream, some pattern matching glitch +# See http://lists.gnu.org/archive/html/bug-bash/2011-02/msg00136.html +Patch128: patmatch.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: texinfo bison @@ -104,6 +108,7 @@ This package contains documentation files for %{name}. %patch124 -p1 -b .examples %patch126 -p1 -b .broken_pipe %patch127 -p1 -b .logout +%patch128 -p0 -b .patmatch echo %{version} > _distribution echo %{release} > _patchlevel @@ -282,6 +287,9 @@ fi #%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt %changelog +* Wed Feb 16 2011 Roman Rakus - 4.2.0-2 +- pattern matching glitch, patch from upstream + * Wed Feb 16 2011 Roman Rakus - 4.2.0-1 - Release bash-4.2