Hi Matthew, On Mon, Sep 22, 2008 at 09:54:06AM +1000, Matthew Hannigan wrote: > > 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. >
That's it. I mean, * There should be space between '==' and "${1}" and "MAJOR" * There shoud be "" around ${1} in case there is no given argument Quan Sun _______________________________________________ coders mailing list coders@slug.org.au http://lists.slug.org.au/listinfo/coders