diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/zsh.h | 2 | ||||
-rw-r--r-- | Test/D04parameter.ztst | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 5563797ba..9cfa8e943 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-05-11 Peter Stephenson <p.stephenson@samsung.com> + + * 35078: Src/zsh.h, Test/D04parameter.ztst: also quote backslash + with (b) flag. + 2015-05-10 Peter Stephenson <p.w.stephenson@ntlworld.com> * 35067 (doc tweak from Daniel, 35071): Doc/Zsh/expn.yo, diff --git a/Src/zsh.h b/Src/zsh.h index b2ab1dfae..f6e08e28d 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -217,7 +217,7 @@ struct mathfunc { /* chars that need to be quoted for pattern matching */ -#define PATCHARS "#^*()|[]<>?~" +#define PATCHARS "#^*()|[]<>?~\\" /* * Types of quote. This is used in various places, so care needs diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index 17a59cb2c..d96ffb64f 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -1700,6 +1700,6 @@ > >Four - funnychars='The qu*nk br!wan f@x j/mps o[]r the la~# ^"&;' + funnychars='The qu*nk br!wan f@x j/mps o[]r \(e la~# ^"&;' [[ $funnychars = ${~${(b)funnychars}} ]] 0:${(b)...} quoting protects from GLOB_SUBST |