diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2016-11-29 12:35:57 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2016-11-29 12:35:57 -0800 |
commit | 3ba86f4db44e6b5f854909fbc639ef3111ec176b (patch) | |
tree | 64e86a987e4c28b0d617efe494c8a72331db90d0 /Src | |
parent | a9fe87e18cbe37d938fb1a02f71f8f905141e0f4 (diff) | |
download | zsh-3ba86f4db44e6b5f854909fbc639ef3111ec176b.tar.gz zsh-3ba86f4db44e6b5f854909fbc639ef3111ec176b.tar.xz zsh-3ba86f4db44e6b5f854909fbc639ef3111ec176b.zip |
40034: clear badcshglob when ignoring errors
Diffstat (limited to 'Src')
-rw-r--r-- | Src/subst.c | 4 |
1 files changed, 3 insertions, 1 deletions
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"); } |