From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12060 invoked from network); 15 Aug 1999 06:12:25 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 15 Aug 1999 06:12:25 -0000 Received: (qmail 19371 invoked by alias); 15 Aug 1999 06:12:12 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7438 Received: (qmail 19364 invoked from network); 15 Aug 1999 06:12:11 -0000 To: zsh-workers@sunsite.auc.dk Subject: Re: exec last command in last pipeline. References: <990814220530.ZM6932@candle.brasslantern.com> MIME-Version: 1.0 (generated by AKEMI 1.13.2 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCQTA0Y0s8GyhCIg==?=) Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 15 Aug 1999 15:12:09 +0900 In-Reply-To: "Bart Schaefer"'s message of "Sat, 14 Aug 1999 22:05:30 +0000" Message-ID: User-Agent: Chao-gnus/6.12.5 AKEMI/1.13.2 (=?ISO-2022-JP?B?GyRCQTAbKEI=?= =?ISO-2022-JP?B?GyRCNGNLPBsoQg==?=) FLAM-DOODLE/1.12.6 (=?ISO-2022-JP?B?GyRCM3cbKEI=?= 10R4.0/5.0) Emacs/20.4 (sparc-sun-solaris2.6) MULE/4.0 (HANANOEN) In article <990814220530.ZM6932@candle.brasslantern.com>, "Bart Schaefer" 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