|
From: | Chet Ramey |
Subject: | Re: Some minor notes on manual chapter 4 "Shell Builtin Commands" |
Date: | Mon, 9 Oct 2023 16:37:43 -0400 |
User-agent: | Mozilla Thunderbird |
On 10/9/23 3:21 PM, Kerin Millar wrote:
I can see not exiting if the interactive shell is in posix mode.I don't mean to nitpick over a minor issue but bash does also report that a numeric argument is "required", implying (at least, to my mind) that the built-in requires a valid argument to be able to act at all. Should bash remain able to exit in the interactive context, it might make sense to avoid that particular word.
Let's try it. I'll make a change to prevent an interactive shell from exiting if exit is supplied a non-numeric argument, and we'll see how it goes. -- ``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/
[Prev in Thread] | Current Thread | [Next in Thread] |