Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14230
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Case of set -e not being in effect in a subshell. |
| Date | 2018-06-11 11:09 -0400 |
| Message-ID | <mailman.1666.1528729766.1292.bug-bash@gnu.org> (permalink) |
| References | <CAG2j0scsLBhh8b5aB_ORYS+ND0jUWzfnGsE9u3WO4TGHdhc4WQ@mail.gmail.com> |
On 6/11/18 6:12 AM, Bartłomiej Palmowski wrote: > > The issue is: > $ cat bad > ( > set -e > false > echo "Shouldn't happen?" > ) && : > $ bash ./bad ; echo $? > Shouldn't happen? > 0 `set -e' is ignored for any command of an OR list except the last, whether it is in effect before the command is executed or when enabled by the command itself. -- ``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/
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Case of set -e not being in effect in a subshell. Chet Ramey <chet.ramey@case.edu> - 2018-06-11 11:09 -0400
csiph-web