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

Re: small if statement in shell script

michael@etalon.net wrote:
Quoting michael@etalon.net:

Quoting kevin.kempter@dataintellect.com:

You have to have something for the shell to run. Try setting a new variable to
1 or some such silly-ness and it will work. Or else you have to comment out
the entire if statement.

I guess I could just add an blank echo command?

It's not a NOP, but will emit a newline.

Something like:
if blah blah
# command
# command # command

This message was sent using IMP, the Internet Messaging Program.

Reply to: