Re: The trap EXIT not allways executed

2016-11-08 Thread Chet Ramey
On 11/7/16 5:09 AM, Dr. Werner Fink wrote: > 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'

Changelog credit objection

2016-11-08 Thread Martijn Dekker
>From CWRU/CWRU.chlog in git: >10/19 > >- >

Re: The trap EXIT not allways executed

2016-11-08 Thread L. A. Walsh
FYI: This works in 4.3.42 (echos "ATT: execute trap function" in both). Dr. Werner Fink wrote The trap EXIT not allways executed, see example script Repeat-By: Example script #!/bin/bash bash -c ' _rm () { echo ATT: Execute trap

Re: SIGINT kills interactive shell from dot script

2016-11-08 Thread Martijn Dekker
Op 08-11-16 om 14:38 schreef Chet Ramey: > On 11/7/16 7:54 AM, Martijn Dekker wrote: > >> But it's really helped that bash turns out to have another unique >> behaviour: apparently, bash refuses to ignore SIGINT on interactive >> shells. So, for interactive bash, the workaround is simply to avoid

Re: In ((0? var: 0)), expressions stored in var are evaluated.

2016-11-08 Thread Chet Ramey
On 11/6/16 9:39 PM, Koichi MURASE wrote: > Hello, here is another bashbug report. Thanks for the report and fix. This is a nice job of investigation. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech,

Re: SIGINT kills interactive shell from dot script

2016-11-08 Thread Chet Ramey
On 11/7/16 7:54 AM, Martijn Dekker wrote: > But it's really helped that bash turns out to have another unique > behaviour: apparently, bash refuses to ignore SIGINT on interactive > shells. So, for interactive bash, the workaround is simply to avoid > using "trap - INT" to unignore the signal. Wh