Re: How to suppress warning messages for empty lines in shell scripts?



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?

.



Relevant Pages

  • Re: dc files stuck in recycle bin
    ... I tried to empty the recycle bin and received an error ... > If I open a command prompt window and go to the recycler folder, ... any of the files you want gone using the del command. ...
    (microsoft.public.windowsxp.general)
  • [SLE] empty the swap partition? slow internet
    ... Should the swap partition be empty upon cold boot? ... If so what is the command ... Serving the San Francisco Bay Area Since 1967 ...
    (SuSE)
  • Re: Using CAPI to encrypt in AES CBC mode without padding
    ... Rob will empty you! ... Get your tensely learning coverage in back of my ... Georgette won't command any ...
    (sci.crypt)
  • Re: [SLE] empty the swap partition? slow internet
    ... >> Should the swap partition be empty upon cold boot? ... >> command to test it to see how full it is, and to empty it, and in which ... Serving the San Francisco Bay Area Since 1967 ...
    (SuSE)
  • Re: disappearing hosts file
    ... almost completely empty hosts.sam file has replaced it in my /etc ... Does spybot change the location of the hosts file or is this some malware ... I have a batch file that updates the HOSTS file, and one command is to ...
    (alt.comp.anti-virus)