diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-02-23 18:33:57 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-02-23 18:33:57 +0000 |
commit | fd2e321313b400ce3e1f223c93d531696d98be62 (patch) | |
tree | 1e50a002741c32f07ee0608aad252c12044d5795 /Src | |
parent | 485a008075ce19bfdf19922c803d1637ebb5255e (diff) | |
download | zsh-fd2e321313b400ce3e1f223c93d531696d98be62.tar.gz zsh-fd2e321313b400ce3e1f223c93d531696d98be62.tar.xz zsh-fd2e321313b400ce3e1f223c93d531696d98be62.zip |
24588: tweak glob qualifier completion
24590: turn down error reporting when unquoting
Diffstat (limited to 'Src')
-rw-r--r-- | Src/exec.c | 5 | ||||
-rw-r--r-- | Src/lex.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Src/exec.c b/Src/exec.c index 83479bc88..9ec49e11a 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -46,7 +46,10 @@ enum { /**/ int noerrexit; -/* suppress error messages */ +/* + * noerrs = 1: suppress error messages + * noerrs = 2: don't set errflag on parse error, either + */ /**/ mod_export int noerrs; diff --git a/Src/lex.c b/Src/lex.c index a3b03c8a4..4128f109a 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -1619,7 +1619,7 @@ parse_subst_string(char *s) * Historical note: we used to check here for olen == l, but * that's not necessarily the case if we stripped an RCQUOTE. */ - if (c != STRING || errflag) { + if (c != STRING || (errflag && !noerrs)) { fprintf(stderr, "Oops. Bug in parse_subst_string: %s\n", errflag ? "errflag" : "c != STRING"); fflush(stderr); |