diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2007-10-30 14:01:32 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-10-30 14:01:32 +0000 |
| commit | a232ab562423eccb9523c190c5e03242320cc3fd (patch) | |
| tree | 78161b5cbd651fd5174689950c226b301addd653 /Test | |
| parent | adapted 24030: work around Solaris cancelling curses key timeout (diff) | |
| download | zsh-a232ab562423eccb9523c190c5e03242320cc3fd.tar zsh-a232ab562423eccb9523c190c5e03242320cc3fd.tar.gz zsh-a232ab562423eccb9523c190c5e03242320cc3fd.tar.bz2 zsh-a232ab562423eccb9523c190c5e03242320cc3fd.tar.lz zsh-a232ab562423eccb9523c190c5e03242320cc3fd.tar.xz zsh-a232ab562423eccb9523c190c5e03242320cc3fd.tar.zst zsh-a232ab562423eccb9523c190c5e03242320cc3fd.zip | |
users/12149: "@" with splitting in double quotes retains empty fields
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/D04parameter.ztst | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index 1910e60be..e8718a691 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -942,3 +942,35 @@ >some >sunny >day + + foo="line:with::missing::fields:in:it" + print -l ${(s.:.)foo} +0:Removal of empty fields in unquoted splitting +>line +>with +>missing +>fields +>in +>it + + foo="line:with::missing::fields:in:it" + print -l "${(s.:.)foo}" +0:Hacky removal of empty fields in quoted splitting with no "@" +>line +>with +>missing +>fields +>in +>it + + foo="line:with::missing::fields:in:it" + print -l "${(@s.:.)foo}" +0:Retention of empty fields in quoted splitting with "@" +>line +>with +> +>missing +> +>fields +>in +>it |
