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

Re: Shell Script (If and Else) problem



--- Paul Smith <psmith@nortel.com> wrote:

>     if [ ... ];
> 	then command;
> 	else other_command;
>     fi

I much prefer:

[ ... ] &&
{
  foo
} || {
  bar
}

-- Thomas Adam


		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com



Reply to: