🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #411

Bug in bash "[" function

#411
From: Brian Fox
Date: Wed, 02 Aug 1989 21:46
21 lines
979 bytes
   Date: Wed, 2 Aug 89 09:21:13 EDT
   From: hugo@griggs.dartmouth.edu (Peter Su)


   When bash interprets this code:

   if [ ! -d $xtop/util -o ! -d $xtop/util/imake.includes ]; then
       echo "$progname"":  no X configuration files under $xtop"
       exit 1
   fi

   it says "[: too many arguments.", Bourne shell "[" works fine on the
   same expression.

   I think this is because the precedence of the ! operator is different
   in bash than in sh.

Thanks.  Fixed.

Brian
Technical Details
Message-ID: <8908022146.AA20836@aurel.caltech.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!AUREL.CALTECH.EDU!bfox
References: <8908021321.AA27974@griggs.dartmouth.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!AUREL.CALTECH.EDU!bfox
From: bfox@AUREL.CALTECH.EDU (Brian Fox)
Newsgroups: gnu.bash.bug
Subject: Bug in bash "[" function
Message-ID: <8908022146.AA20836@aurel.caltech.edu>
Date: 2 Aug 89 21:46:34 GMT
References: <8908021321.AA27974@griggs.dartmouth.edu>
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: bfox@aurel.caltech.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 21