[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -e does not take effects in subshell
From: |
Chet Ramey |
Subject: |
Re: -e does not take effects in subshell |
Date: |
Thu, 13 Aug 2015 09:51:17 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 |
On 8/13/15 1:35 AM, isabella parakiss wrote:
> On 8/13/15, Eric Blake <eblake@redhat.com> wrote:
>> Like it or not, it is the historical behavior standardized by POSIX. It
>> is NOT intuitive, and our advice is "DON'T USE set -e - IT WON'T DO WHAT
>> YOU WANT". We can't change the behavior, because it would break scripts
>> that rely on the POSIX-specified behavior.
>>
> POSIX didn't say anything about shopt set-e-that-actually-makes-sense.
Sure, all it needs is a specification with the same rigor as Posix's.
There have been a couple of attempts to do that so far, but they haven't
been articulated well enough to differentiate from set -e or to
implement. I encourage folks to take another shot at specifying their
requirements for something `that actually makes sense', and `not sucking'
isn't sufficient.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- -e does not take effects in subshell, PRC, 2015/08/11
- Re: -e does not take effects in subshell, Greg Wooledge, 2015/08/11
- Re: -e does not take effects in subshell, Andreas Schwab, 2015/08/18
- Re: -e does not take effects in subshell, Linda Walsh, 2015/08/18
- Re: -e does not take effects in subshell, Greg Wooledge, 2015/08/20
- Re: -e does not take effects in subshell, Linda Walsh, 2015/08/20
- Re: -e does not take effects in subshell, Chet Ramey, 2015/08/20
- Re: -e does not take effects in subshell, Linda Walsh, 2015/08/20
- Re: -e does not take effects in subshell, Chet Ramey, 2015/08/21