1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 18:30:55 +01:00

zsh-workers/7963

This commit is contained in:
Tanaka Akira 1999-09-22 13:00:44 +00:00
parent d6ed401f60
commit 3b0bd4cf4a
2 changed files with 79 additions and 49 deletions

View file

@ -152,7 +152,8 @@ stringsubst(LinkList list, LinkNode node, int ssub)
*str++ = '\0';
if (endchar == Outpar && str2[1] == '(' && str[-2] == ')') {
/* Math substitution of the form $((...)) */
str = arithsubst(str2 + 1, &str3, str);
str[-2] = '\0';
str = arithsubst(str2 + 2, &str3, str);
setdata(node, (void *) str3);
continue;
}