diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2010-03-15 10:15:51 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-03-15 10:15:51 +0000 |
commit | ec3f3e9eeceaaf694e5dfbe15d07d11a304fd944 (patch) | |
tree | 1a39323f448591f3a5b563c1a4b923ec40b3db0e /Test | |
parent | 43df0a21c0dfa9536b0c8ce816685a6002451f54 (diff) | |
download | zsh-ec3f3e9eeceaaf694e5dfbe15d07d11a304fd944.tar.gz zsh-ec3f3e9eeceaaf694e5dfbe15d07d11a304fd944.tar.xz zsh-ec3f3e9eeceaaf694e5dfbe15d07d11a304fd944.zip |
27780: effect of backslashes in :s changed in _files
Diffstat (limited to 'Test')
-rw-r--r-- | Test/D04parameter.ztst | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index f81b7de1d..d43e60efa 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -959,6 +959,25 @@ >oof/rab >oof/rab + bsbs='X\\\\Y' + print -r -- ${bsbs:s/\\/\\/} + print -r -- "${bsbs:s/\\/\\/}" + print -r -- ${bsbs:s/\\\\/\\\\/} + print -r -- "${bsbs:s/\\\\/\\\\/}" + print -r -- ${bsbs:gs/\\/\\/} + print -r -- "${bsbs:gs/\\/\\/}" + print -r -- ${bsbs:gs/\\\\/\\\\/} + print -r -- "${bsbs:gs/\\\\/\\\\/}" +0:Handling of backslashed backslashes in substitution modifier +>X\\\\Y +>X\\\\Y +>X\\\\Y +>X\\\\Y +>X\\\\Y +>X\\\\Y +>X\\\\Y +>X\\\\Y + print -r ${${:-one/two}:s,/,X&Y,} print -r ${${:-one/two}:s,/,X\&Y,} print -r ${${:-one/two}:s,/,X\\&Y,} |