On 10/9/23 1:57 AM, Kerin Millar wrote:

Just to add that, while POSIX does not specify the behaviour of the exit builtin where its operand "is not an unsigned decimal integer or is greater than 255", it does forbid all special built-in utilities (including exit) from causing an interactive shell to exit on account of an error.

Again, it's a mixed bag. The ash-derived shells and mksh exit, others
(bash, yash) do not. I can see not exiting if the interactive shell is
in posix mode.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/


Reply via email to