[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
> $
- How do I make a portable test??, Dr. David Kirkby, 2003/02/13
- Re: How do I make a portable test??, John Burger, 2003/02/13
- Re: How do I make a portable test??, Eric Siegerman, 2003/02/14
- Re: How do I make a portable test??, Dr. David Kirkby, 2003/02/14
- Re: How do I make a portable test??, Eric Siegerman, 2003/02/14
- Re: How do I make a portable test??, Andreas Schwab, 2003/02/14
- Re: How do I make a portable test??, Thomas E. Dickey, 2003/02/14
- Re: How do I make a portable test??, Eric Siegerman, 2003/02/14
- Re: How do I make a portable test??,
Bruce Korb <=
- Re: How do I make a portable test??, Eric Siegerman, 2003/02/17