Re: history -r a; history -c; history -r b gives segfault

2018-06-11 Thread Chet Ramey
On 6/10/18 3:28 AM, Edward Huff wrote: > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' > -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu' > -DC

Re: Case of set -e not being in effect in a subshell.

2018-06-11 Thread Chet Ramey
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 th

Re: Case of set -e not being in effect in a subshell.

2018-06-11 Thread Clark Wang
On Mon, Jun 11, 2018 at 6:12 PM, Bartłomiej Palmowski wrote: > > The issue is: > $ cat bad > ( > set -e > false > echo "Shouldn't happen?" > ) && : > $ bash ./bad ; echo $? > Shouldn't happen? > 0 > $ cat good > ( > set -e > false > echo "Shouldn't happen?" > ) > $ bash ./

Case of set -e not being in effect in a subshell.

2018-06-11 Thread Bartłomiej Palmowski
$ 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