tcsh fix
Bernd Walter
ticso at cicely12.cicely.de
Fri Nov 12 15:04:07 PST 2004
On Fri, Nov 12, 2004 at 09:50:05AM -0800, Paul Armstrong wrote:
> On Fri, Nov 12, 2004 at 05:05:28PM +0100, Erik Trulsson wrote:
> > > This is to provide compatibility whn working with multiple versions of
> > > Unix.
> > > I write many scripts in sh on Solaris, and find they just don't work on
> > > Linux because /bin/sh on Linux is really /bin/bash and is not bacwards
> > > compatible. I HATE this. We shouldn't do this, and should do anything
> > > like this.
> >
> > Again - backwards compatible with what? Might it not be the case that
> > it is your scripts for Solaris-sh which uses non-standard features and
> > therefore fails on bash (which actually tends to be very
> > standards-compliant.)
>
> Indeed. Keep in mind that if you want a standard Bourne implementation
> on Solaris (or at least one that complies to POSIX.2a-1992), then you
> need to start your scripts with /usr/xpg4/bin/sh rather than /bin/sh.
I often missed features in FreeBSD ash that Solaris /bin/sh had, such as
using ^ sign as an | alternative (in germany one often has to search
the | key on bad configured terminals, which was not uncommon in field
service).
I also often missed the vi mode and command history of FreeBSDs ash in
Solaris.
To get both sides happy you have to build it into *one* shell and not
complaining your missing features are more important than what others
need.
> Given that it's easier (and shouldn't actually do any harm to the base
> OS) to commit the 44bsd csh as /bin/csh (or just simply remove the link
> for /bin/csh->/bin/tcsh) than continue to argue about this, would
> someone with a commit bit please make this thread go away?
It's much easier getting the compatbility bug fixed in tcsh by
contacting the tcsh maintainers than senseless asking for yet another
shell in the base.
Have you ever tried contacting the tcsh team about this issue?
Having two shells is just bleeding base and the discussion about csh
vs. tcsh is long time ago - it even already made it into -stable.
--
B.Walter BWCT http://www.bwct.de
bernd at bwct.de info at bwct.de
More information about the freebsd-hackers
mailing list