On Mon, Sep 22, 2008 at 06:34:22AM +1000, Quan Sun wrote:
> Hi Steve,
> 
> On Sun, Sep 21, 2008 at 12:54:06PM -0700, Steve O'Sullivan wrote:
> > Hello All,
> >
> > First off, to Daniel Pittman.... Thanks so much for your input! As you  
> > # --- begin script
> >
> > #!/bin/sh
> >
> > if [ ${1}=MAJOR ]
> > then
> 
> Do you mean
> #begin script
> if [ "${1}" == "MAJOR" ]
> then
>     do_sth
> elif [ "${1}" == "MINOR" ]
> then
>     do_sth_else
> fi

Quan, 
    Double equals (==) is the same as = for shells that
support it.  Which is not all.

Matt

        
_______________________________________________
coders mailing list
coders@slug.org.au
http://lists.slug.org.au/listinfo/coders

Reply via email to