Re: How to suppress warning messages for empty lines in shell scripts?
- From: Erik Max Francis <max@xxxxxxxxxxx>
- Date: Sat, 31 May 2008 10:51:42 -0700
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?
The problem isn't an empty line. It's something else. You'll have to post the script for us to see what.
--
Erik Max Francis && max@xxxxxxxxxxx && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
In the fight between you and the world, back the world.
-- Frank Zappa
.
- Prev by Date: Re: How to suppress warning messages for empty lines in shell scripts?
- Next by Date: Re: Linux robustness
- Previous by thread: Re: How to suppress warning messages for empty lines in shell scripts?
- Next by thread: Re: How to suppress warning messages for empty lines in shell scripts?
- Index(es):
Relevant Pages
|