Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Dec 1999 12:33:07 +0100
From:      Martin Cracauer <cracauer@cons.org>
To:        "David O'Brien" <obrien@FreeBSD.ORG>
Cc:        current@FreeBSD.ORG
Subject:   Re: sh(1) broken caching [was: Re: Broken sh(1)?]
Message-ID:  <19991217123306.A3177@cons.org>
In-Reply-To: <19991216091832.A74110@dragon.nuxi.com>; from David O'Brien on Thu, Dec 16, 1999 at 09:18:33AM -0800
References:  <712.945183175@axl.noc.iafrica.com> <38565DEA.4487DF53@scc.nl> <19991216154020.A41154@cons.org> <19991216091832.A74110@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In <19991216091832.A74110@dragon.nuxi.com>, David O'Brien wrote: 
> On Thu, Dec 16, 1999 at 03:40:20PM +0100, Martin Cracauer wrote:
> > You can also fool sh into running the *wrong* binary if if you have
> > two in showdowed paths:
> 
> pdksh does not suffer from either this problem or the problem that
> started this thread (and does not coredump).  We've shown in the past
> that pdksh is actually smaller (when linked statically) than ash.
> 
> I still think we should *seriously* consider switching to pdksh.

As I said before, pdksh has other bugs.

Try this in pdksh:

#! /bin/sh
emacs -nw /tmp/bla
mv /tmp/bla /tmp/bla2

Two times:
- first run, do not hit C-g in emacs
- second run, use C-g in emacs

In the second run, the `mv` will not be executed, while in the first
it will. 

This is not a bug, but a design decision in pdksh (see also my
homepage - sigint.html). It's poor man's workaround about programs
that don't exit with a proper signal status when they exit on a
signal.

Also we would loose all the PRs we received in the past. This testing
effort by our user base is a valuable resource. From the tests I ran
on all available shells, only bash2 is considerably better than the
other shells, pdksh has other bugs than our ash, not less.

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/
  Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991217123306.A3177>