The following reply was made to PR bin/124748; it has been noted by GNATS.
From: Jilles Tjoelker <jilles@stack.nl>
To: bug-followup@FreeBSD.org, gcooper@FreeBSD.org
Cc:
Subject: Re: bin/124748: [patch] sh(1): sh -c 'exit -1' fails with "Illegal
number: -1", instead of exiting with a code of 255
Date: Sun, 26 Apr 2009 16:40:46 +0200
Do people actually use 'exit -1' instead of the clearer 'exit 255'? '-1'
is not an unsigned integer, so not a posix compliant parameter to the
exit special builtin. Even then, sh still aborts a script with a nonzero
exit code if exit is used wrongly like this.
--
Jilles Tjoelker
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"