From 5c17f9ab3f7c873f8a04498af8d77d5f3ca8e3e0 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Fri, 1 Jan 2016 13:01:16 -0800 Subject: 37473: check for cshnullglob in command position. --- Src/exec.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Src/exec.c') diff --git a/Src/exec.c b/Src/exec.c index 18d19b672..352615c83 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -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); -- cgit 1.4.1