Hello,
In Bash 4.3.42:
In execute_cmd/shell_execve(), if HAVE_BASH_BANG_EXEC is defined, the
macro READ_SAMPLE_BUF has the potential to set sample_len to -1.
#if defined (HAVE_HASH_BANG_EXEC)
READ_SAMPLE_BUF (command, sample, sample_len);
sample[sample_len - 1] = '\0';
Th
On Mon, Aug 15, 2016 at 03:15:13AM -0700, L. A. Walsh wrote:
> Calculations shouldn't ever trigger "-e" except for things like
> division by 0 (which doesn't trigger it, as the calculation dies
> before an return value can be calculated); it's counter-intuitive.
You may wish as hard as you like, b
Chet Ramey wrote:
The relevant change was probably the change in the set of commands to
which
`set -e' applies. The (( command (among others) was added to that list
in bash-4.1. The change was the result of Posix changing the semantics
of the errexit option and expanding its scope from simpl
Maybe my linux system have some problem. I have upgrade to the 4.3.46.
root@qemux86-64:~# /bin/bash test
test: line 3: 1055 Exit 142exit 142
1054 Hangup | false
142 129
root@qemux86-64:~# /bin/bash --version
GNU bash, version 4.3.46(1)-release (x86_64-poky