From a202d64d19e437ec6af9348b8bb687fa2d330782 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Sep 10 2019 10:38:19 +0000 Subject: import bash-4.4.19-8.el8_0 --- diff --git a/SOURCES/bash-5.0-shellpid-subshell.patch b/SOURCES/bash-5.0-shellpid-subshell.patch new file mode 100644 index 0000000..6dad7c1 --- /dev/null +++ b/SOURCES/bash-5.0-shellpid-subshell.patch @@ -0,0 +1,12 @@ +diff --git a/parse.y b/parse.y +--- a/parse.y ++++ b/parse.y +@@ -4193,7 +4193,7 @@ eof_error: + + FREE (nestret); + } +- if MBTEST(ch == '$') ++ if MBTEST(ch == '$' && (tflags & LEX_WASDOL) == 0) + tflags |= LEX_WASDOL; + else + tflags &= ~LEX_WASDOL; diff --git a/SPECS/bash.spec b/SPECS/bash.spec index 7e3549a..bce5680 100644 --- a/SPECS/bash.spec +++ b/SPECS/bash.spec @@ -7,7 +7,7 @@ Version: %{baseversion}%{patchleveltag} Name: bash Summary: The GNU Bourne Again shell -Release: 7%{?dist} +Release: 8%{?dist} License: GPLv3+ Url: https://www.gnu.org/software/bash Source0: https://ftp.gnu.org/gnu/bash/bash-%{baseversion}.tar.gz @@ -95,6 +95,10 @@ Patch131: bash-4.4-case-in-command-subst.patch Patch132: bash-4.4-coverity.patch +# 1727952 - Parsing commands break when using $$ in command substitution $(..) +# https://lists.gnu.org/archive/html/bug-bash/2017-01/msg00065.html +Patch134: bash-5.0-shellpid-subshell.patch + BuildRequires: texinfo bison BuildRequires: ncurses-devel BuildRequires: autoconf, gettext @@ -318,6 +322,10 @@ end %{_libdir}/pkgconfig/%{name}.pc %changelog +* Wed Jul 10 2019 Siteshwar Vashisht - 4.4.19-8 +- Fix `$$` expansion in subshell + Resolves: #1727952 + * Mon Jan 14 2019 Siteshwar Vashisht - 4.4.19-7 - Bump version number Resolves: #1650059