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:
parent
2c9138bc21
commit
1f81bdcb47
4 changed files with 28 additions and 0 deletions
12
Src/parse.c
12
Src/parse.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue