diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-22 12:35:20 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-22 12:35:20 +0000 |
commit | d139ae56432a82a3dbe11f4be89ba7d886f2c177 (patch) | |
tree | f2cd4d874fe13fe923490dd69bd92a0fb3314381 /Src/subst.c | |
parent | fdb8d5b45550835c00f40591e6ee5b6f6f6fd868 (diff) | |
download | zsh-d139ae56432a82a3dbe11f4be89ba7d886f2c177.tar.gz zsh-d139ae56432a82a3dbe11f4be89ba7d886f2c177.tar.xz zsh-d139ae56432a82a3dbe11f4be89ba7d886f2c177.zip |
zsh-3.1.6-pws-5 zsh-3.1.6-pws-5
Diffstat (limited to 'Src/subst.c')
-rw-r--r-- | Src/subst.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Src/subst.c b/Src/subst.c index 5b08d0bfb..b0bb885c9 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -152,8 +152,7 @@ stringsubst(LinkList list, LinkNode node, int ssub) *str++ = '\0'; if (endchar == Outpar && str2[1] == '(' && str[-2] == ')') { /* Math substitution of the form $((...)) */ - str[-2] = '\0'; - str = arithsubst(str2 + 2, &str3, str); + str = arithsubst(str2 + 1, &str3, str); setdata(node, (void *) str3); continue; } |