From 764c05e57acb0657b5fd9c9c1aa19ad7051e8a8a Mon Sep 17 00:00:00 2001 From: Oliver Eikemeier Date: Tue, 10 Aug 2004 19:32:19 +0000 Subject: Fix nested brace vs. variable expansion --- shells/bash/Makefile | 2 +- shells/bash/files/patch-braces.c | 15 +++++++++++++++ shells/bash3/Makefile | 2 +- shells/bash3/files/patch-braces.c | 15 +++++++++++++++ 4 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 shells/bash/files/patch-braces.c create mode 100644 shells/bash3/files/patch-braces.c diff --git a/shells/bash/Makefile b/shells/bash/Makefile index 6934c16e2180..567a2d564228 100644 --- a/shells/bash/Makefile +++ b/shells/bash/Makefile @@ -7,7 +7,7 @@ PORTNAME= bash PORTVERSION= 3.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= shells MASTER_SITES= ${MASTER_SITE_GNU} \ ftp://ftp.cwru.edu/pub/%SUBDIR%/ diff --git a/shells/bash/files/patch-braces.c b/shells/bash/files/patch-braces.c new file mode 100644 index 000000000000..591d58ef3888 --- /dev/null +++ b/shells/bash/files/patch-braces.c @@ -0,0 +1,15 @@ +# +# Fix nested brace vs. variable expansion +# +# http://lists.gnu.org/archive/html/bug-bash/2004-08/msg00056.html +# +--- braces.c.orig Tue Aug 04 14:32:33 2004 ++++ braces.c Tue Aug 04 15:15:36 2004 +@@ -402,6 +402,7 @@ + { + pass_next = 1; + i++; ++ level++; + continue; + } + #endif diff --git a/shells/bash3/Makefile b/shells/bash3/Makefile index 6934c16e2180..567a2d564228 100644 --- a/shells/bash3/Makefile +++ b/shells/bash3/Makefile @@ -7,7 +7,7 @@ PORTNAME= bash PORTVERSION= 3.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= shells MASTER_SITES= ${MASTER_SITE_GNU} \ ftp://ftp.cwru.edu/pub/%SUBDIR%/ diff --git a/shells/bash3/files/patch-braces.c b/shells/bash3/files/patch-braces.c new file mode 100644 index 000000000000..591d58ef3888 --- /dev/null +++ b/shells/bash3/files/patch-braces.c @@ -0,0 +1,15 @@ +# +# Fix nested brace vs. variable expansion +# +# http://lists.gnu.org/archive/html/bug-bash/2004-08/msg00056.html +# +--- braces.c.orig Tue Aug 04 14:32:33 2004 ++++ braces.c Tue Aug 04 15:15:36 2004 +@@ -402,6 +402,7 @@ + { + pass_next = 1; + i++; ++ level++; + continue; + } + #endif -- cgit v1.2.3