about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c7
1 files changed, 3 insertions, 4 deletions
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(":"));