Re: How to suppress warning messages for empty lines in shell scripts?
- From: Allen Kistler <ackistler@xxxxxxxxx>
- Date: Sat, 31 May 2008 12:27:06 -0500
Jochen Berninger wrote:
From the command line I called (with nohup) a shell script which contains empty lines
(for better readability).
The nohup executes the script successfully but outputs a warning for the empty line:
/usr/local/joch/bin/dotest: line 3: : command not found
How can I suppress this warning (of cause without removing the empty line)?
Do I really have to always avoid empty lines in shell scripts?
You don't have to avoid blank lines.
Are you sure they're really blank?
Try "cat -A /usr/local/joch/bin/dotest" to see if you've got some unprintable characters in your lines.
.
- Prev by Date: Re: Linux robustness
- Next by Date: Re: Things Linux Can Do Without
- Previous by thread: paypal sell nike adidas prada puma
- Next by thread: Re: How to suppress warning messages for empty lines in shell scripts?
- Index(es):
Relevant Pages
|