1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 09:41:44 +02: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:
Peter Stephenson 2017-09-04 21:36:46 +01:00
parent 1e536747ae
commit 5a8155f7b7
2 changed files with 12 additions and 1 deletions

View file

@ -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>
* 41621: Completion/Unix/Command/_mkdir: Honour the 'command'

View file

@ -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--;