Re: V+=1 doesn't work if V is a reference to an integer array element

2021-01-15 Thread Oğuz
15 Ocak 2021 Cuma tarihinde Chet Ramey yazdı: > > a fix for which is in the devel branch. Thanks! > -- > ``The lyf so short, the craft so long to lerne.'' - Chaucer > ``Ars longa, vita brevis'' - Hippocrates > Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/

Re: Crash in malloc.c : internal_malloc under Asan

2021-01-15 Thread Ángel
On 2021-01-15 at 17:11 -0500, Jeffrey Walton wrote: > Hi Everyone, > > I'm trying to use an Asan-instrumented version of Bash for my shell. > Bash is dying in startup code. The source file is malloc.c (missing > from Bash sources at > https://git.savannah.gnu.org/cgit/bash.git/tree/), and the func

Re: Crash in malloc.c : internal_malloc under Asan

2021-01-15 Thread Ángel
On 2021-01-15 at 17:11 -0500, Jeffrey Walton wrote: > Hi Everyone, > > I'm trying to use an Asan-instrumented version of Bash for my shell. > Bash is dying in startup code. The source file is malloc.c (missing > from Bash sources at > https://git.savannah.gnu.org/cgit/bash.git/tree/), and the func

Crash in malloc.c : internal_malloc under Asan

2021-01-15 Thread Jeffrey Walton
Hi Everyone, I'm trying to use an Asan-instrumented version of Bash for my shell. Bash is dying in startup code. The source file is malloc.c (missing from Bash sources at https://git.savannah.gnu.org/cgit/bash.git/tree/), and the function is internal_malloc. The Asan folks have a suspicion of mal

Re:

2021-01-15 Thread Chet Ramey
On 1/15/21 4:33 PM, Jeffrey Walton wrote: Hi Everyone, I'm testing on Ubuntu 18.05 x86_64 fully patched. It looks like the man2html recipe is not using LDFLAGS: Thanks for the report. The recipe should use LDFLAGS_FOR_BUILD. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re:

2021-01-15 Thread Jeffrey Walton
On Fri, Jan 15, 2021 at 4:33 PM Jeffrey Walton wrote: > > Hi Everyone, > > I'm testing on Ubuntu 18.05 x86_64 fully patched. It looks like the > man2html recipe is not using LDFLAGS: > > /usr/bin/cc -DHAVE_CONFIG_H -DSHELL > -I/home/jwalton/Build-Scripts/bash-5.1 -I.. > -I/home/jwalton/ok2delete-

[no subject]

2021-01-15 Thread Jeffrey Walton
Hi Everyone, I'm testing on Ubuntu 18.05 x86_64 fully patched. It looks like the man2html recipe is not using LDFLAGS: /usr/bin/cc -DHAVE_CONFIG_H -DSHELL -I/home/jwalton/Build-Scripts/bash-5.1 -I.. -I/home/jwalton/ok2delete-asan/include -DNDEBUG -DTEST_ASAN=1 -g2 -O2 -fsanitize=address -fno-omi

Re: Use of `mktemp' is dangerous, better use `mkstemp'...

2021-01-15 Thread Ángel
On 2021-01-15 at 10:00 -0500, Chet Ramey wrote: > On 1/14/21 11:45 PM, Jeffrey Walton wrote: > > Hi Everyone, > > > > I'm building Bash 5.1 from sources. This may be of interest: > > > > /usr/bin/ld: ./lib/sh/libsh.a(tmpfile.o): in function > > `sh_mktmpname': > > /home/jwalton/Build-Scripts/bash

Re: V+=1 doesn't work if V is a reference to an integer array element

2021-01-15 Thread Chet Ramey
On 1/15/21 11:50 AM, felix wrote: $ bash <(declare -f f | sed '1,2d;$s/.*/echo $BASH_VERSION/;s/local /declare /;') 12 /dev/fd/63: line 4: a[1]4: syntax error in expression (error token is "4") 12 declare -ai a=([0]="0" [1]="12") 5.1.4(1)-release It's all the same

Re: V+=1 doesn't work if V is a reference to an integer array element

2021-01-15 Thread felix
This seem linked: $ f() { local -a a=('' 'foo'); local -n b=a[1]; echo $b; b+=\ bar; echo $b; declare -p a; } $ f foo foo bar declare -a a=([0]="" [1]="foo bar") Ok, fine! $ bash <(declare -f f | sed '1,2d; $s/.*/echo $BASH_VERSION

Re: Bash 5.1 and Ncurses

2021-01-15 Thread Chet Ramey
On 1/15/21 12:12 AM, Jeffrey Walton wrote: Hi Everyone, I configured Bash 5.1 with prefix=/usr/local, --with-curses and --enable-multibyte. The `prefix' option controls installation, not where the configure or build processes look for anything. The link failed with undefined references, lik

Re: Use of `mktemp' is dangerous, better use `mkstemp'...

2021-01-15 Thread Chet Ramey
On 1/14/21 11:45 PM, Jeffrey Walton wrote: Hi Everyone, I'm building Bash 5.1 from sources. This may be of interest: /usr/bin/ld: ./lib/sh/libsh.a(tmpfile.o): in function `sh_mktmpname': /home/jwalton/Build-Scripts/bash-5.1/lib/sh/tmpfile.c:160: warning: the use of `mktemp' is dangerous, better