hugo@GRIGGS.DARTMOUTH.EDU (Peter Su) (08/02/89)
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. Pete
bfox@AUREL.CALTECH.EDU (Brian Fox) (08/03/89)
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