about summary refs log tree commit diff
path: root/Src/subst.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-02-06 11:57:03 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-02-06 11:57:03 +0000
commit8b0cc8781764e0d1b203423033fab71774e40016 (patch)
tree0018ea9e0d2ad1308e1d384fdba3e5859dc99ed2 /Src/subst.c
parent800c270d4d75aaa668da906383ae6b41f952f6f5 (diff)
downloadzsh-8b0cc8781764e0d1b203423033fab71774e40016.tar.gz
zsh-8b0cc8781764e0d1b203423033fab71774e40016.tar.xz
zsh-8b0cc8781764e0d1b203423033fab71774e40016.zip
22195: don't set HOME in the shell
Diffstat (limited to 'Src/subst.c')
-rw-r--r--Src/subst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/subst.c b/Src/subst.c
index d92be8f89..bbe7b3f07 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -417,7 +417,7 @@ filesubstr(char **namptr, int assign)
 
 	val = zstrtol(str + 1, &ptr, 10);
 	if (isend(str[1])) {   /* ~ */
-	    *namptr = dyncat(home, str + 1);
+	    *namptr = dyncat(home ? home : "", str + 1);
 	    return 1;
 	} else if (str[1] == '+' && isend(str[2])) {   /* ~+ */
 	    *namptr = dyncat(pwd, str + 2);