Path: 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 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