[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash errexit shell option does not work in some cases.
From: |
Chet Ramey |
Subject: |
Re: bash errexit shell option does not work in some cases. |
Date: |
Mon, 1 Jun 2020 10:57:04 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 |
On 5/31/20 10:32 PM, Hyunho Cho wrote:
>
> GNU bash, version 5.0.16(1)-release (x86_64-pc-linux-gnu)
> Operating System: Ubuntu 20.04 LTS
> Kernel: Linux 5.4.0-33-generic
> Architecture: x86-64
>
>
> bash errexit shell option does not work in some cases.
> after execution a command, exitcode is set to "1" but shell script does not
> exited.
Thanks for the report. These are bugs; they're artifacts from when the
standard said `set -e' worked only on simple commands. This will be fixed
in the next devel branch push.
Chet
--
``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/
- Re: bash errexit shell option does not work in some cases.,
Chet Ramey <=