The trap EXIT not allways executed

2016-11-07 Thread Dr. Werner Fink
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc -I/home/abuild/rpmbuild/BUILD/bash-4.4 -L/home/abuild/rpmbuild/BUILD/bash-4.4/../readline-7.0 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -D

Re: SIGINT kills interactive shell from dot script

2016-11-07 Thread Martijn Dekker
Op 06-11-16 om 16:52 schreef Chet Ramey: > On 11/6/16 4:08 AM, Martijn Dekker wrote: >> An interactive bash is killed by SIGINT after a command to unset any >> trap for SIGINT. >> >> $ cat >/tmp/dotscript <> trap >> trap - INT >> kill -s INT "$$" >> EOF >> $ . /tmp/dotscript >> (no output of 'trap'

Re: 4.4 change in behavior from 4.3: how to catch unset when using ${#length}

2016-11-07 Thread Dan Douglas
On Sun, Nov 6, 2016 at 3:46 PM, Chet Ramey wrote: > On 11/1/16 5:57 AM, Dan Douglas wrote: >> On a possibly related note, would you consider adjusting +, :+, -, :-, >> as in "${var[@]+word}" to align with the meaning of [[ -v var[@] ]] as >> discussed in >> https://lists.gnu.org/archive/html/bug-