about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-03-22 18:32:46 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-03-22 18:32:46 +0000
commit16f7f6961fc68c115d0ace129f51da2ffab2c052 (patch)
tree60fa008ae1501daac4c6740f8e6eee30654e1f0c /Src
parent7b7905fedbd7d8b4b0791928c96682bb97057956 (diff)
downloadzsh-16f7f6961fc68c115d0ace129f51da2ffab2c052.tar.gz
zsh-16f7f6961fc68c115d0ace129f51da2ffab2c052.tar.xz
zsh-16f7f6961fc68c115d0ace129f51da2ffab2c052.zip
22375, 22376: ${(0)...} splits on NULL byte
Diffstat (limited to 'Src')
-rw-r--r--Src/subst.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Src/subst.c b/Src/subst.c
index c79be3b76..6a4c26b6c 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -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 */