[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Looking for something like "errexit" for interactive ses
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] Looking for something like "errexit" for interactive sessions |
Date: |
Thu, 29 Aug 2019 08:52:54 -0400 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Wed, Aug 28, 2019 at 06:29:52PM -0700, Eric Pruitt wrote:
> I'd want it to work like this:
> # With non-existent option I'm calling errprompt
> ~$ set -o errprompt
> ~$ true; echo x; (exit 123); echo y
> x
This option does not exist. This is not a thing that will ever exist.
You are living in a fantasy world.
> ~$ echo $?
> 127
Why would it be 127 instead of 123?
Oh right, it's because you're making shit up and you're not even bothering
to spend enough time on your broken fictitious examples to make them
appear internally consistent.
- Re: [Help-bash] Looking for something like "errexit" for interactive sessions, (continued)
Re: [Help-bash] Looking for something like "errexit" for interactive sessions, Eli Schwartz, 2019/08/28