From owner-freebsd-bugs Sat Apr 4 02:04:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA25902 for freebsd-bugs-outgoing; Sat, 4 Apr 1998 02:04:10 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from cons.org (knight.cons.org [194.233.237.86]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA25894; Sat, 4 Apr 1998 02:04:04 -0800 (PST) (envelope-from cracauer@cons.org) Received: (from cracauer@localhost) by cons.org (8.8.5/8.7.3) id MAA10701; Sat, 4 Apr 1998 12:03:52 +0200 (CEST) Message-ID: <19980404120351.04932@cons.org> Date: Sat, 4 Apr 1998 12:03:51 +0200 From: Martin Cracauer To: Ahmon Dancy , Bruce Evans Cc: Studded@dal.net, freebsd-bugs@FreeBSD.ORG, freebsd-gnats-submit@FreeBSD.ORG Subject: Re: bin/6047: /bin/sh does not handle -e option properly Mail-Followup-To: Ahmon Dancy , Bruce Evans , Studded@dal.net, freebsd-bugs@FreeBSD.ORG, freebsd-gnats-submit@FreeBSD.ORG References: <199803180924.UAA32209@godzilla.zeta.org.au> <199804031625.IAA10622@ultra.franz.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=AqsLC8rIMeq19msA X-Mailer: Mutt 0.89i In-Reply-To: <199804031625.IAA10622@ultra.franz.com>; from Ahmon Dancy on Fri, Apr 03, 1998 at 08:25:12AM -0800 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii In <199804031625.IAA10622@ultra.franz.com>, Ahmon Dancy wrote: > Hey dudes, what's the latest status on this? [My last reply didn't make it into the bug database, sorry if you see this twice]. Could you please test the appended fix? It fixes the particual problem, the question is what else it br(e)ak(e)s :-) In case you don't want to build a shell, I put a binary with this fix on http://www.freebsd.org/~cracauer/sh.gz Happy Lisping Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer cracauer@wavehh.hanse.de (batched, preferred for large mails) Tel.: (daytime) +4940 41478712 Fax.: (daytime) +4940 41478715 Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536 Paper: (private) Waldstrasse 200, 22846 Norderstedt, Germany --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=diff *** /usr/src/bin/sh/eval.c Wed Mar 25 16:43:53 1998 --- eval.c Fri Apr 3 20:32:12 1998 *************** *** 764,770 **** for (sp = varlist.list ; sp ; sp = sp->next) mklocal(sp->text); funcnest++; ! evaltree(cmdentry.u.func, 0); funcnest--; INTOFF; poplocalvars(); --- 764,773 ---- for (sp = varlist.list ; sp ; sp = sp->next) mklocal(sp->text); funcnest++; ! if (flags & EV_TESTED) ! evaltree(cmdentry.u.func, EV_TESTED); ! else ! evaltree(cmdentry.u.func, 0); funcnest--; INTOFF; poplocalvars(); --AqsLC8rIMeq19msA-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message