1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-10 12:40:58 +02:00

37473: check for cshnullglob in command position.

This commit is contained in:
Barton E. Schaefer 2016-01-01 13:01:16 -08:00
parent 62706b1abc
commit 5c17f9ab3f
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2016-01-01 Barton E. Schaefer <schaefer@zsh.org>
* 37473: Src/exec.c: check for cshnullglob in command position.
2015-12-31 Barton E. Schaefer <schaefer@zsh.org>
* 37469: Src/parse.c: do NOT allow semicolons in place of line breaks

View file

@ -2785,6 +2785,11 @@ execcmd(Estate state, int input, int output, int how, int last1)
* arguments before and no command substitution
* has provided a status.
*/
if (badcshglob == 1) {
zerr("no match");
lastval = 1;
return;
}
cmdoutval = use_cmdoutval ? lastval : 0;
if (varspc)
addvars(state, varspc, 0);