Hi,
lets consider the following:
$ echo $BASH_VERSION
4.1.2(1)-release
$ cat /etc/system-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)
$ ( set -e; echo foo; false; echo bar; ) # this one is expected
foo
$ ( set -e; echo foo; false; echo bar; ) || true # this one is not expected
f
$ lsb_release -a
No LSB modules are available.
Distributor ID:Ubuntu
Description:Ubuntu 18.04 LTS
Release:18.04
Codename:bionic
$ apt-cache show bash
Package: bash
Architecture: amd64
Version: 4.4.18-2ubuntu1
Multi-Arch: foreign
Priority: required
Essential: yes
Section: shells
Ori
After so many years of using bash I assumed that there is nothing special
to set -e that I wouldn't know so I didn't bother to look it up in the
docs, my bad. Thanks for the answers!
2018-06-11 16:09 GMT+01:00 Chet Ramey :
> On 6/11/18 6:12 AM, Bartłomiej Palmowski wrote:
>
>