1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-04 20:40:57 +02:00

22375, 22376: ${(0)...} splits on NULL byte

This commit is contained in:
Peter Stephenson 2006-03-22 18:32:46 +00:00
parent 7b7905fedb
commit 16f7f6961f
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-03-22 Peter Stephenson <pws@csr.com>
* 22375 with tweak from Wayne, 22376: Doc/Zsh/expn.yo,
Src/subst.c: ${(0)...} splits on null bytes.
2006-03-21 Peter Stephenson <p.w.stephenson@ntlworld.com>
* zsh-users/10047 : Doc/Zsh/zle.yo, Src/Zle/zle_thingy.c,

View file

@ -1274,6 +1274,13 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub)
sep = "\n";
break;
case '0':
spsep = zhalloc(3);
spsep[0] = Meta;
spsep[1] = '\0' ^ 32;
spsep[2] = '\0';
break;
case 's':
tt = 1;
/* fall through */