mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-12 10:00:56 +01:00
41633: Fix problem backgrounding function definitions.
Owing to being marked as simple sublists the instruction to background was ignored. This applied to anonymous functions.
This commit is contained in:
parent
1e536747ae
commit
5a8155f7b7
2 changed files with 12 additions and 1 deletions
|
|
@ -808,8 +808,13 @@ par_sublist(int *cmplx)
|
|||
WC_SUBLIST_END),
|
||||
f, (e - 1 - p), c);
|
||||
cmdpop();
|
||||
} else
|
||||
} else {
|
||||
if (tok == AMPER || tok == AMPERBANG) {
|
||||
c = 1;
|
||||
*cmplx |= c;
|
||||
}
|
||||
set_sublist_code(p, WC_SUBLIST_END, f, (e - 1 - p), c);
|
||||
}
|
||||
return 1;
|
||||
} else {
|
||||
ecused--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue