From 6845f57d4cf6cb45a04fa8e10cfdb3ad7d30f3c4 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 9 Feb 2000 01:15:23 +0000 Subject: zsh-workers/9625 --- Src/exec.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Src/exec.c') diff --git a/Src/exec.c b/Src/exec.c index 7b45a1ba2..7ea1147b6 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -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(":")); -- cgit 1.4.1