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/subst.c | |
| parent | 40032: consistency in handling of subscript slices outside the bounds of an a... (diff) | |
| download | zsh-3ba86f4db44e6b5f854909fbc639ef3111ec176b.tar zsh-3ba86f4db44e6b5f854909fbc639ef3111ec176b.tar.gz zsh-3ba86f4db44e6b5f854909fbc639ef3111ec176b.tar.bz2 zsh-3ba86f4db44e6b5f854909fbc639ef3111ec176b.tar.lz zsh-3ba86f4db44e6b5f854909fbc639ef3111ec176b.tar.xz zsh-3ba86f4db44e6b5f854909fbc639ef3111ec176b.tar.zst zsh-3ba86f4db44e6b5f854909fbc639ef3111ec176b.zip | |
40034: clear badcshglob when ignoring errors
Diffstat (limited to 'Src/subst.c')
| -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"); } |
