Re: How to suppress warning messages for empty lines in shell scripts?
- From: Icarus Sparry <usenet@xxxxxxxxxxxxxxxxx>
- Date: 31 May 2008 17:48:28 GMT
On Sat, 31 May 2008 17:17:36 +0000, 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?
Jochen
Are you sure the lines are empty, and do not contain a CR character?
This typically happens if you edit it on a non-unix machine, but these
days some editors and source code control system "helpfully" add them.
.
- Prev by Date: Re: Things Linux Can Do Without
- 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
|