if statement
Ray Parrish
crp at cmc.net
Thu Aug 20 20:44:02 UTC 2009
Raseel wrote:
> On 20-Aug-2009, at 21:59, Ray Parrish <crp at cmc.net> wrote:
>
>
>> Hello,
>>
>> I am having difficulty with an if statement. Here it is -
>>
>> # load the sleep interval in seconds from the command line.
>> interval=$2;
>> # if specified interval in seconds is less than 200 or empty, set
>> it
>> to the default of 300 seconds
>> if [ $interval == "" ]
>>
>> then
>>
>
> Shouldn't this statement be something like :
>
> If [ $interval == "" ] ; then
>
> Aren't you missing the semi-colon here ?
>
> Thanks,
> Raseel
>
It works fine without the semi-colon, does it need to be there for some
other reason?
Later, Ray Parrish
--
The Future of Technology.
http://www.rayslinks.com/The%20Future%20of%20Technology.html
Ray's Links, a variety of links to usefull things, and articles by Ray.
http://www.rayslinks.com
Writings of "The" Schizophrenic, what it's like to be a schizo, and other
things, including my poetry.
http://www.writingsoftheschizophrenic.com
More information about the ubuntu-users
mailing list