diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2003-05-12 10:55:21 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-05-12 10:55:21 +0000 |
commit | 11cd9b2de3b8ce3a73260673c5571fecbc95318f (patch) | |
tree | fbf2623dadfda977e6eb7e884c5815fffbc98e4c /README | |
parent | 6e77f38b925e3f37dc69b26efd6173df7281bbe8 (diff) | |
download | zsh-11cd9b2de3b8ce3a73260673c5571fecbc95318f.tar.gz zsh-11cd9b2de3b8ce3a73260673c5571fecbc95318f.tar.xz zsh-11cd9b2de3b8ce3a73260673c5571fecbc95318f.zip |
18512, modified: fix up for ${foo/\//stuf} fix
Diffstat (limited to 'README')
-rw-r--r-- | README | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/README b/README index a5bfeac9b..ce7522002 100644 --- a/README +++ b/README @@ -24,6 +24,21 @@ details, see the documentation. Possible incompatibilities --------------------------- +A change between 4.0.6 and 4.0.7 affects substitutions of the form +${foo/src/rep} and ${foo//src/rep}. In 4.0.6, a literal `/' was quoted in +the `src' text with two backslashes. This was documented, but inconsistent +with normal quoting conventions and poorly implemented. The `/' now +requires only one backslash to quote it whether or not the expresion occurs +in double quotes. For example: + % foo=word/bird + % print ${foo/\//-} "${foo/\//+}" + word-bird word+bird +Note also the following workaround which is valid in all versions of the +shell that support this syntax: + % slash=/ + % foo=word/bird + % print ${foo/$slash/-} "${foo/$slash/+}" + Some particular differences you may notice between version 3.0 and 4.0 (mostly based on 3.0.8; there are other differences from earlier versions): |