mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +01:00
zsh-workers/9625
This commit is contained in:
parent
deac7dec24
commit
6845f57d4c
5 changed files with 40 additions and 37 deletions
|
|
@ -1661,13 +1661,12 @@ execcmd(Estate state, int input, int output, int how, int last1)
|
|||
} else if (varspc) {
|
||||
nullexec = 2;
|
||||
break;
|
||||
} else if (((!nullcmd || !*nullcmd || opts[IGNORENULLCMD])
|
||||
&& !opts[SHNULLCMD])
|
||||
||(cflags & BINF_PREFIX)) {
|
||||
} else if (!nullcmd || !*nullcmd || opts[CSHNULLCMD] ||
|
||||
(cflags & BINF_PREFIX)) {
|
||||
zerr("redirection with no command", NULL, 0);
|
||||
errflag = lastval = 1;
|
||||
return;
|
||||
} else if (!nullcmd || !*nullcmd || opts[IGNORENULLCMD]) {
|
||||
} else if (!nullcmd || !*nullcmd || opts[SHNULLCMD]) {
|
||||
if (!args)
|
||||
args = newlinklist();
|
||||
addlinknode(args, dupstring(":"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue