On Fri, Feb 13, 2009 at 4:03 PM, Jan-Oliver Wagner
<[email protected]> wrote:
> Hi,
>
> I wonder wether is itsn't useless to have a exit(0) at the end of scripts as
> it is the same as just ending the script. At least over 60 NVTs do so.
>
> Any opinions?

I thought exit(0) was "good form" in scripts... it basically
explicitly states "exit cleanly, with no errorlevel state"

http://www.hsrl.rutgers.edu/ug/shell_help.html looks pretty
accurate... see the "Exit status" section

"All Unix utilities should return an exit status...A non-zero exit
status indicates an error condition of some sort while a zero exit
status indicates things worked as expected. "

--
Eric
http://nixwizard.net
_______________________________________________
Openvas-plugins mailing list
[email protected]
http://lists.wald.intevation.org/mailman/listinfo/openvas-plugins

Reply via email to