From: Tanaka Akira <akr@jaist.ac.jp>
To: zsh-workers@sunsite.auc.dk
Subject: Re: exec last command in last pipeline.
Date: 15 Aug 1999 15:12:09 +0900 [thread overview]
Message-ID: <rsqiu6hshc6.fsf@crane.jaist.ac.jp> (raw)
In-Reply-To: "Bart Schaefer"'s message of "Sat, 14 Aug 1999 22:05:30 +0000"
In article <990814220530.ZM6932@candle.brasslantern.com>,
"Bart Schaefer" <schaefer@candle.brasslantern.com> writes:
> If you remove the test of last1 == 2 in execcmd(), there's no reason to
> test for last1 in execpline2(). But both tests have been there since
> before version 3.0.0; I'm concerned that the shell is going to exec in
> some cases where it should not.
if ((how & Z_ASYNC) || (!(flags & CFLAG_EXEC) &&
(((is_builtin || is_shfunc) && output) ||
(!is_cursh && (last1 != 1 || sigtrapped[SIGZERR] ||
sigtrapped[SIGEXIT] || havefiles()))))) {
and
if (last1 == 1)
(and
DPUTS(last1 != 1 && !forked, "BUG: not exiting?");
)
can be the reason to set last1 to 2 instead of 1.
--
Tanaka Akira
prev parent reply other threads:[~1999-08-15 6:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-14 16:04 Tanaka Akira
1999-08-14 22:05 ` Bart Schaefer
1999-08-15 6:12 ` Tanaka Akira [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=rsqiu6hshc6.fsf@crane.jaist.ac.jp \
--to=akr@jaist.ac.jp \
--cc=zsh-workers@sunsite.auc.dk \
/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).