From: Han Pingtian <hanpt@linux.vnet.ibm.com>
To: zsh-workers@zsh.org
Subject: Re: Function code breaking out of if then ...fi
Date: Mon, 5 Nov 2012 17:31:55 +0800 [thread overview]
Message-ID: <20121105093155.GB2200@localhost.localdomain> (raw)
In-Reply-To: <20121105082250.GA2200@localhost.localdomain>
On Mon, Nov 05, 2012 at 04:22:50PM +0800, Han Pingtian wrote:
> On my latop, if use 'echo non-existing*' in the if command, the
> script will exit immediately, looks like the glob failure is
> considered an error of ERR_EXIT. And changing to
>
> { echo non-existing* } always { TRY_BLOCK_ERROR=0 }
>
> doesn't help, it still exits immediately. In the contrast, using 'fn'
> won't trigger ERR_EXIT.
But the failure of 'echo non-existing*' won't trigger a 'trap "..." ZERR' command
at the sametime, this isn't like a normal failing command will do ...
next prev parent reply other threads:[~2012-11-05 9:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-02 9:09 Michal Maruska
2012-11-02 21:39 ` Bart Schaefer
2012-11-05 8:22 ` Han Pingtian
2012-11-05 9:31 ` Han Pingtian [this message]
2012-11-05 14:29 ` Peter Stephenson
2012-11-05 14:55 ` Peter Stephenson
2012-11-05 16:08 ` Peter Stephenson
2012-11-06 6:47 ` Han Pingtian
2012-11-09 22:52 ` Peter Stephenson
2012-11-10 1:13 ` Bart Schaefer
2012-11-10 21:23 ` Peter Stephenson
2012-11-12 10:24 ` Peter Stephenson
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=20121105093155.GB2200@localhost.localdomain \
--to=hanpt@linux.vnet.ibm.com \
--cc=zsh-workers@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).