From 3ba86f4db44e6b5f854909fbc639ef3111ec176b Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Tue, 29 Nov 2016 12:35:57 -0800 Subject: 40034: clear badcshglob when ignoring errors --- Src/subst.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/subst.c b/Src/subst.c index a26ebb1d6..06d2c9ea9 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -411,7 +411,9 @@ globlist(LinkList list, int nountok) next = nextnode(node); zglob(list, node, nountok); } - if (badcshglob == 1) + if (noerrs) + badcshglob = 0; + else if (badcshglob == 1) zerr("no match"); } -- cgit 1.4.1