From owner-freebsd-bugs Fri Apr 3 13:00:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA28124 for freebsd-bugs-outgoing; Fri, 3 Apr 1998 13:00:49 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from sparky.franz.com (sparky.franz.com [192.132.95.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA28056 for ; Fri, 3 Apr 1998 13:00:42 -0800 (PST) (envelope-from dancy@franz.com) Received: from ultra.franz.com by sparky.franz.com (8.8.8/FI-2.0) id NAA01299; Fri, 3 Apr 1998 13:00:32 -0800 (PST) Received: from ultra by ultra.franz.com (SMI-8.6/FI-2.0) id NAA13627; Fri, 3 Apr 1998 13:00:31 -0800 Message-Id: <199804032100.NAA13627@ultra.franz.com> To: Martin Cracauer cc: freebsd-bugs@hub.freebsd.org Subject: Re: bin/6047: /bin/sh does not handle -e option properly In-reply-to: Your message of "Fri, 03 Apr 1998 20:47:01 +0200." <19980403204701.17844@cons.org> Date: Fri, 03 Apr 1998 13:00:31 -0800 From: Ahmon Dancy Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >> >> --M9NhX3UHpAaciwkO >> Content-Type: text/plain; charset=us-ascii >> >> In <199804031630.IAA26487@hub.freebsd.org>, Ahmon Dancy wrote: >> > Hey dudes, what's the latest status on this? >> >> 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 I tried this out and it seems to work, however it has been compiled and linked w/ a newer shared library than the one I have on my system. I tried extracting /usr/src/bin from the Feb 98 snapshot CD but apparently the printf.c file is missing. Can you send me a tarball of your /usr/src/bin/sh? >> >> 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 >> >> --M9NhX3UHpAaciwkO >> 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(); >> >> --M9NhX3UHpAaciwkO-- >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message