[kwlug-disc] Outsmarted by bash && if

John Johnson jvj at golden.net
Wed Apr 7 22:36:01 EDT 2010


At 21:39 2010-04-07, you wrote:
>Is the space before the ";" relevant?

While my bash work was years ago, I think the ";" itself may be an issue.
When placed before the "then" the semicolon terminates the following 
construct early:
if <condition> then statement ;

The semicolon essentially becomes a null statement

Regards.
John





More information about the kwlug-disc_kwlug.org mailing list