From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] ERR_EXIT with "for" loops and shell functions (Re: Bug report)
Date: Fri, 02 Jan 2015 10:56:13 -0800 [thread overview]
Message-ID: <150102105613.ZM8621@torch.brasslantern.com> (raw)
In-Reply-To: <20150102165623.7c4e3dd1@ntlworld.com>
On Jan 2, 4:56pm, Peter Stephenson wrote:
}
} On Sat, 27 Dec 2014 16:32:20 -0800
} Bart Schaefer <schaefer@brasslantern.com> wrote:
} > The following patch attempts to fix all of this weirdness.
}
} However, you must have found everything I did since the tests I added
} now pass. They're all just for status, nothing specific to ERR_EXIT
} or ERR_RETURN; I didn't find I needed to change anything there in the
} main code, just for the status value itself. They overlap with yours
} but that's no big deal. Here they are.
They don't really overlap with mine much at all, because they examine
the normal cases whereas I looked at the ERR_EXIT case.
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?
next prev parent reply other threads:[~2015-01-02 18:56 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 [this message]
2015-01-02 20:15 ` 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=150102105613.ZM8621@torch.brasslantern.com \
--to=schaefer@brasslantern.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).