diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2003-05-07 09:38:49 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-05-07 09:38:49 +0000 |
| commit | 4f9580ec039ef11093791cff7263dcb06614045e (patch) | |
| tree | d8435ade739928e115a2cfd3c785a78228cf8fc0 /Test | |
| parent | zsh-users/6049 ChangeLog: add poster's name (diff) | |
| download | zsh-4f9580ec039ef11093791cff7263dcb06614045e.tar zsh-4f9580ec039ef11093791cff7263dcb06614045e.tar.gz zsh-4f9580ec039ef11093791cff7263dcb06614045e.tar.bz2 zsh-4f9580ec039ef11093791cff7263dcb06614045e.tar.lz zsh-4f9580ec039ef11093791cff7263dcb06614045e.tar.xz zsh-4f9580ec039ef11093791cff7263dcb06614045e.tar.zst zsh-4f9580ec039ef11093791cff7263dcb06614045e.zip | |
18508: quoting of separator in ${foo//../..} was buggy
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/D04parameter.ztst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index 77964a741..3327caf9d 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -146,6 +146,18 @@ 0:array ${...:/...} >expletive deleted boldly claws dogs expletive deleted fight + str1='a\string\with\backslashes' + str2='a/string/with/slashes' + print "${str1//\\/-}" + print ${str1//\\/-} + print "${str2//\//-}" + print ${str2//\//-} +0:use of backslashes in //-substitutions +>a-string-with-backslashes +>a-string-with-backslashes +>a-string-with-slashes +>a-string-with-slashes + str1='twocubed' array=(the number of protons in an oxygen nucleus) print $#str1 ${#str1} "$#str1 ${#str1}" $#array ${#array} "$#array ${#array}" |
