Re: How to suppress warning messages for empty lines in shell scripts?
- From: Doug McIntyre <merlyn@xxxxxxxxx>
- Date: 31 May 2008 18:24:09 GMT
buzzuz@xxxxxxxxxxx (Jochen Berninger) writes:
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?
Shell scripts have no problems with empty lines. Are you sure its empty?
Sounds like its trying to run something thats not there, probably a
syntax error of some kind?
.
- Prev by Date: Re: why tar, bz2, gz is single thread?
- Next by Date: Re: How to suppress warning messages for empty lines in shell scripts?
- 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
|