bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some minor notes on manual chapter 4 "Shell Builtin Commands"


From: Chet Ramey
Subject: Re: Some minor notes on manual chapter 4 "Shell Builtin Commands"
Date: Mon, 9 Oct 2023 14:56:24 -0400
User-agent: Mozilla Thunderbird

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    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]