diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-06-27 06:54:32 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-06-27 06:54:32 +0000 |
commit | b09922bb063ddf44c7850b182fec4795fbe1ae90 (patch) | |
tree | 8a6dfa5ef6c6012753c0dc5a6e93e6f820b51a58 /Src/subst.c | |
parent | 346825df86466cf151be61b9429ef2c1734e66ea (diff) | |
download | zsh-b09922bb063ddf44c7850b182fec4795fbe1ae90.tar.gz zsh-b09922bb063ddf44c7850b182fec4795fbe1ae90.tar.xz zsh-b09922bb063ddf44c7850b182fec4795fbe1ae90.zip |
zsh-3.1.5-pws-23 zsh-3.1.5-pws-23
Diffstat (limited to 'Src/subst.c')
-rw-r--r-- | Src/subst.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Src/subst.c b/Src/subst.c index 18d815404..ab6bf84fb 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -1328,15 +1328,10 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub) else t = aval; } else if (!isarr) { - if (!*val && arrasg > 1) { - arr[0] = NULL; - l = 0; - } else { - arr[0] = val; - arr[1] = NULL; - l = 1; - } + arr[0] = val; + arr[1] = NULL; t = aval = arr; + l = 1; } else l = arrlen(aval), t = aval; p = a = zalloc(sizeof(char *) * (l + 1)); |