*BSD News Article 90903


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!newsfeeds.sol.net!news.maxwell.syr.edu!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: sh bug?
Date: 13 Mar 1997 01:40:09 GMT
Organization: Private BSD site, Dresden
Lines: 27
Message-ID: <5g7ltp$ps@uriah.heep.sax.de>
References: <332369be.3271553@news.fu-berlin.de>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:36953

thimm@physik.fu-berlin.de (Axel Thimm) wrote:

> Installing tetex on 2.1.0 a bug in sh showed up.
> It affects redirection like >&1 and makes Thomas Esser's life harder to
> keep tetex portable. bash is working fine.
> Is this a known bug, has it been fixed in 2.1.7? (This bug shows up when
> calling MakeTeXPK in recent tetex releases)

Please don't assume everybody is happy to suck several megabytes of
TeTeX just to verify a shell bug.  Better isolate the bug in a minimum
script.  What's wrong about the redirections?

I hope it's not the old buggy script that had an unterminated string
or such inside an if branch that evaluated to false.  This wasn't
actually a shell bug, even though most shells seemed to get away with
it.  (It was some TeX, but i eventually forgot which one.)

Btw., bash is by far nothing you could count as a reference shell.  If
at all, use a genuine ksh, then at least you've got what the Posix
consortium deemed the only shell.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)