diff options
Diffstat (limited to 'app-shells/bash/files')
-rw-r--r-- | app-shells/bash/files/bash-4.0-amp-case-segv.patch | 21 | ||||
-rw-r--r-- | app-shells/bash/files/bash-4.0-bar-and-piping.patch | 18 |
2 files changed, 39 insertions, 0 deletions
diff --git a/app-shells/bash/files/bash-4.0-amp-case-segv.patch b/app-shells/bash/files/bash-4.0-amp-case-segv.patch new file mode 100644 index 000000000000..25bca0f8778d --- /dev/null +++ b/app-shells/bash/files/bash-4.0-amp-case-segv.patch @@ -0,0 +1,21 @@ +http://lists.gnu.org/archive/html/bug-bash/2009-03/msg00129.html + +*** ../bash-4.0/execute_cmd.c 2009-02-14 05:41:41.000000000 +0800 +--- execute_cmd.c 2009-03-14 13:47:15.000000000 +0800 +*************** +*** 2930,2936 **** + retval = execute_command (clauses->action); + } + while ((clauses->flags & CASEPAT_FALLTHROUGH) && (clauses = clauses->next)); +! if ((clauses->flags & CASEPAT_TESTNEXT) == 0) + EXIT_CASE (); + else + break; +--- 2930,2936 ---- + retval = execute_command (clauses->action); + } + while ((clauses->flags & CASEPAT_FALLTHROUGH) && (clauses = clauses->next)); +! if (!clauses || (clauses->flags & CASEPAT_TESTNEXT) == 0) + EXIT_CASE (); + else + break; diff --git a/app-shells/bash/files/bash-4.0-bar-and-piping.patch b/app-shells/bash/files/bash-4.0-bar-and-piping.patch new file mode 100644 index 000000000000..788dfcdebd8f --- /dev/null +++ b/app-shells/bash/files/bash-4.0-bar-and-piping.patch @@ -0,0 +1,18 @@ +http://lists.gnu.org/archive/html/bug-bash/2009-03/msg00098.html + +*** ../bash-4.0-patched/parse.y 2009-03-09 10:27:05.000000000 -0400 +--- parse.y 2009-03-12 09:02:31.000000000 -0400 +*************** +*** 1123,1127 **** + REDIRECT *r; + +! tc = $1; + rd.dest = 1; + r = make_redirection (2, r_duplicating_output, rd); +--- 1123,1127 ---- + REDIRECT *r; + +! tc = $1->type == cm_simple ? $1->value.Simple : $1; + rd.dest = 1; + r = make_redirection (2, r_duplicating_output, rd); + |