From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: NOMATCH errors
Date: Sun, 8 Jan 2017 10:35:49 -0800 [thread overview]
Message-ID: <170108103549.ZM8736@torch.brasslantern.com> (raw)
In-Reply-To: <1483673721.1546772.838942313.0683A864@webmail.messagingengine.com>
On Jan 5, 10:35pm, Anthony Heading wrote:
}
} echo hello
} echo =hello =hello
} echo "is there anybody in there?"
}
} doesn't get past:
} hello
} hello:2: hello not found
}
} Interestingly the docs perhaps arguably seem to imply differently:
} Fatal errors found in non-interactive shells include:
} [...]
} o File generation failures where not caused by NO_MATCH or similar
} options
This particular bit of doc is out of date. Which is to say, either the
doc should have been changed or a bug was introduced.
This appears to date from workers/30789 which introduced the option
CONTINUE_ON_ERROR. This changed default startup-script behavior from
blowing right past all sorts of syntax problems, to aborting on those
errors. Setting the option restores the old behavior.
Unfortunately NO_MATCH errors got swept into the bucket along with all
the other startup-time errors, so there's now no way other than using
an "eval" wrapper or an "always" block to safely skip NO_MATCH errors
without also skipping more serious errors like broken loop control
syntax.
So ... either we need to undo that side-effect of CONTINUE_ON_ERROR or
we need to update the documentation quoted above.
prev parent reply other threads:[~2017-01-08 19:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170106034111epcas4p3f9c5c44d3d8318b096fbe5c3dc899439@epcas4p3.samsung.com>
2017-01-06 3:35 ` Anthony Heading
2017-01-06 11:49 ` Peter Stephenson
2017-01-06 16:05 ` Eric Cook
2017-01-07 2:37 ` Anthony Heading
2017-01-08 18:35 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=170108103549.ZM8736@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).