diff options
Diffstat (limited to 'app-shells/bash/files/bash-4.2-rhs-split.patch')
-rw-r--r-- | app-shells/bash/files/bash-4.2-rhs-split.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app-shells/bash/files/bash-4.2-rhs-split.patch b/app-shells/bash/files/bash-4.2-rhs-split.patch new file mode 100644 index 000000000000..59c436479ff9 --- /dev/null +++ b/app-shells/bash/files/bash-4.2-rhs-split.patch @@ -0,0 +1,19 @@ +*** ../bash-4.2/subst.c 2011-01-02 16:12:51.000000000 -0500 +--- subst.c 2011-02-18 22:30:13.000000000 -0500 +*************** +*** 3371,3377 **** + if (string == 0 || *string == '\0') + return (WORD_LIST *)NULL; + +! td.flags = 0; + td.word = string; + tresult = call_expand_word_internal (&td, quoted, 1, dollar_at_p, has_dollar_at); + return (tresult); +--- 3375,3381 ---- + if (string == 0 || *string == '\0') + return (WORD_LIST *)NULL; + +! td.flags = W_NOSPLIT2; /* no splitting, remove "" and '' */ + td.word = string; + tresult = call_expand_word_internal (&td, quoted, 1, dollar_at_p, has_dollar_at); + return (tresult); |