Option '-c' has bug when compile-time config 'ONESHOT' is enabled

2019-05-14 Thread Yu Kou
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/li

Re: Regression in --enable-minimal-config

2019-05-14 Thread Chet Ramey
On 5/13/19 4:18 AM, Miro Kropáček wrote: > On Sun, 12 May 2019 at 21:32, Martijn Dekker wrote: >> Chet only commits snapshots to git and not individual fixes, so it's >> hard to isolate any one fix from the git repo. > Yes, I have noticed. :-) There is no guarantee that a single commit fixes the

Re: Use high bits of the raw random number?

2019-05-14 Thread Chet Ramey
On 5/9/19 10:29 AM, Peng Yu wrote: > Hi, > > Bash uses the low 16 bits for $RANDOM. > > https://git.savannah.gnu.org/cgit/bash.git/tree/variables.c#n1321 > https://git.savannah.gnu.org/cgit/bash.git/tree/variables.c#n1356 > > It seems that the high bits should be more random. If so, maybe the >

Re: Valgrind detects invalid read in bash. malloc assertion fails.

2019-05-14 Thread Chet Ramey
On 5/14/19 2:16 AM, Grisha Levit wrote: > Reproduces for me on Debian 9 with a fresh bash devel build (with or > without DEBUG and MALLOC DEBUG). Anything with a glob will do to reproduce: > > $ valgrind ./bash -c ': *' chet@caleb-debian9:~$ ./build/bash-5.0.7/bash -c ': *' chet@caleb-debian9:~$

Re: Antw: Re: "set -u" and empty arrays

2019-05-14 Thread Eli Schwartz
On 5/14/19 2:53 AM, Ulrich Windl wrote: Chet Ramey schrieb am 13.05.2019 um 21:44 in Nachricht > : >> On 5/9/19 7:07 AM, Ulrich Windl wrote: >>> Bash Version: 4.3 >>> Patch Level: 48 >>> Release Status: release >>> >>> Hi! >>> >>> Is this intended with "set -u": >>> # set -u >>> # decla