autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I make a portable test??


From: Bruce Korb
Subject: Re: How do I make a portable test??
Date: Sat, 15 Feb 2003 09:43:38 -0800

Eric Siegerman wrote:
> 
> On Fri, Feb 14, 2003 at 02:32:42PM -0500, Thomas E. Dickey wrote:
> > On Fri, 14 Feb 2003, Andreas Schwab wrote:
> >
> > > Eric Siegerman <address@hidden> writes:
> > >
> > > |>   [ksh doesn't support "=="]
> > >
> > > Since pdksh supports "==" I'd guess that ksh does too.
> 
> Yup.  Sort of.  It's icky.

You have to use double brackets to use "==", thus:

> $ if [ abd == a?d ] ; then echo yes ; else echo no ; fi
> no
> $ if [[ abd == a?d ]] ; then echo yes ; else echo no ; fi
> yes
> $




reply via email to

[Prev in Thread] Current Thread [Next in Thread]