From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] ERR_EXIT with "for" loops and shell functions (Re: Bug report)
Date: Fri, 2 Jan 2015 20:15:10 +0000 [thread overview]
Message-ID: <20150102201510.2a022046@ntlworld.com> (raw)
In-Reply-To: <150102105613.ZM8621@torch.brasslantern.com>
On Fri, 02 Jan 2015 10:56:13 -0800
Bart Schaefer <schaefer@brasslantern.com> wrote:
> This one:
>
> } + set --
> } + false
> } + for x; do
> } + print nothing executed
> } + done
> } +0:Status 0 from for with implicit empty list
>
> Makes me wonder if my similar test of "select" needs an explicit "set --"
> as well?
Obviously wouldn't hurt, but the chances of extra arguments creeping
into the function that's executing the test is probably fairly low.
pws
prev parent reply other threads:[~2015-01-02 20:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-26 16:53 Bug report mvxxc
2014-12-27 2:35 ` Bart Schaefer
2014-12-28 0:32 ` [PATCH] ERR_EXIT with "for" loops and shell functions (Re: Bug report) Bart Schaefer
2015-01-02 16:56 ` Peter Stephenson
2015-01-02 18:56 ` Bart Schaefer
2015-01-02 20:15 ` Peter Stephenson [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=20150102201510.2a022046@ntlworld.com \
--to=p.w.stephenson@ntlworld.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).