1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 22:51:42 +02:00

49378: skip check for collision of aliases and functions when NO_EXEC

This commit is contained in:
Marlon Richert 2021-09-06 14:16:18 -07:00 committed by Bart Schaefer
parent a36f4228d3
commit a675d058db
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2021-09-06 Bart Schaefer <schaefer@zsh.org>
* Marlon Richert: 49378: Src/parse.c: skip check for collision
of aliases and functions when NO_EXEC
* 49282: set $0 correctly when calling functions from hooks
* 49266: fix segfault on metacharacters in long job texts

View file

@ -2052,7 +2052,7 @@ par_simple(int *cmplx, int nr)
/* Error if preceding assignments */
if (assignments || postassigns)
YYERROR(oecused);
if (hasalias && !isset(ALIASFUNCDEF) && argc &&
if (isset(EXECOPT) && hasalias && !isset(ALIASFUNCDEF) && argc &&
hasalias != input_hasalias()) {
zwarn("defining function based on alias `%s'", hasalias);
YYERROR(oecused);