[kwlug-disc] Outsmarted by bash && if

William Park opengeometry at yahoo.ca
Wed Apr 7 22:38:52 EDT 2010


On Wed, Apr 07, 2010 at 09:39:50PM -0400, Lori Paniak wrote:
> > > if [ -n "$STICK" ] && [ -n "$STATUS" ]; then
> > > 	      /sbin/ifup ppp0
> > > fi
> > $ if [ -n "fred" ] && [ -n "barney" ] ; then
> > > echo yup
> > > fi
> > yup

> Is the space before the ";" relevant?  

No.

-- 
William





More information about the kwlug-disc mailing list