1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-15 23:11:26 +01:00

25587: fix a==(stuff) and associated stuff.

This commit is contained in:
Peter Stephenson 2008-09-01 20:18:46 +00:00
parent 2c9138bc21
commit 1f81bdcb47
4 changed files with 28 additions and 0 deletions

View file

@ -1567,6 +1567,18 @@ par_simple(int *complex, int nr)
str = p + 1;
} else
equalsplit(tokstr, &str);
for (p = str; *p; p++) {
/*
* We can't treat this as "simple" if it contains
* expansions that require process subsitution, since then
* we need process handling.
*/
if (p[1] == Inpar &&
(*p == Equals || *p == Inang || *p == Outang)) {
*complex = 1;
break;
}
}
ecstr(name);
ecstr(str);
isnull = 0;