mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-14 10:40:54 +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
|
|
@ -1,3 +1,9 @@
|
||||||
|
2017-09-04 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
|
* 41633: Src/parse.c: make sure function definitions including
|
||||||
|
anonymous functions put into the background are run in the
|
||||||
|
background.
|
||||||
|
|
||||||
2017-09-04 Daniel Shahaf <d.s@daniel.shahaf.name>
|
2017-09-04 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||||
|
|
||||||
* 41621: Completion/Unix/Command/_mkdir: Honour the 'command'
|
* 41621: Completion/Unix/Command/_mkdir: Honour the 'command'
|
||||||
|
|
|
||||||
|
|
@ -808,8 +808,13 @@ par_sublist(int *cmplx)
|
||||||
WC_SUBLIST_END),
|
WC_SUBLIST_END),
|
||||||
f, (e - 1 - p), c);
|
f, (e - 1 - p), c);
|
||||||
cmdpop();
|
cmdpop();
|
||||||
} else
|
} else {
|
||||||
|
if (tok == AMPER || tok == AMPERBANG) {
|
||||||
|
c = 1;
|
||||||
|
*cmplx |= c;
|
||||||
|
}
|
||||||
set_sublist_code(p, WC_SUBLIST_END, f, (e - 1 - p), c);
|
set_sublist_code(p, WC_SUBLIST_END, f, (e - 1 - p), c);
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
ecused--;
|
ecused--;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue