Date: Sat, 4 Apr 1998 08:40:04 -0800 (PST) From: Ahmon Dancy <dancy@franz.com> To: freebsd-bugs Subject: Re: bin/6047: /bin/sh does not handle -e option properly Message-ID: <199804041640.IAA06871@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/6047; it has been noted by GNATS.
From: Ahmon Dancy <dancy@franz.com>
To: Martin Cracauer <cracauer@cons.org>
Cc: Bruce Evans <bde@zeta.org.au>, Studded@dal.net, freebsd-bugs@freebsd.org,
freebsd-gnats-submit@freebsd.org
Subject: Re: bin/6047: /bin/sh does not handle -e option properly
Date: Sat, 04 Apr 1998 08:37:12 -0800
This new code makes my script work properly.
>>
>> --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 <cracauer@cons.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804041640.IAA06871>
