bash will not link against ncursesw and readline in /usr/local

2018-11-11 Thread John Frankish
Using bash-4.4.18
Intel core i7 laptop running 32-bit or 64-bit linux
Using gcc-8.2.0

The configure script does not find libncursesw on a system where only the wide 
version of ncurses exists  - even when readine is linked against ncursesw.

The configure scripts does not find libreadline when it is compiled to 
/usr/local and when using the configure switch 
"--with-installed-readline=/usr/local"

The following seems to work, but it would be good if the configure script could 
manage without help

edit configure
5166: LIBS="-lncursesw  $LIBS"

5260: eval ac_cv_rl_includedir=/usr/local/include/readline
5261: eval ac_cv_rl_libdir=/usr/local/lib

5263: LIBS="$LIBS -lreadline -lncursesw"


./configure --prefix=/usr/local --without-bash-malloc 
--with-installed-readline=/usr/local ac_cv_lib_ncurses_tgetent=true

make
make install



bash will not link against ncursesw and readline in /usr/local

2018-11-11 Thread John Frankish
Using bash-4.4.18
Intel core i7 laptop running 32-bit or 64-bit linux
Using gcc-8.2.0

The configure script does not find libncursesw on a system where only the wide 
version of ncurses exists  - even when readine is linked against ncursesw.

The configure scripts does not find libreadline when it is compiled to 
/usr/local and when using the configure switch 
"--with-installed-readline=/usr/local"

The following seems to work, but it would be good if the configure script could 
manage without help

edit configure
5166: LIBS="-lncursesw  $LIBS"

5260: eval ac_cv_rl_includedir=/usr/local/include/readline
5261: eval ac_cv_rl_libdir=/usr/local/lib

5263: LIBS="$LIBS -lreadline -lncursesw"


./configure --prefix=/usr/local --without-bash-malloc 
--with-installed-readline=/usr/local ac_cv_lib_ncurses_tgetent=true

make
make install



[mapfile]: problem reentrance with normal file

2018-11-11 Thread Didou Serge
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H   -I.  -I../. -I.././include -I.././lib  -Wdate-time
-D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/bash-1ixwpb/bash-4.4=.
-fstack-protector-strong -Wformat -Werror=format-security -Wall -no-pie
-Wno-parentheses -Wno-format-security
uname output: Linux MX36 4.10.0-42-generic #46-Ubuntu SMP Mon Dec 4
14:36:05 UTC 2017 i686 i686 i686 GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 4.4
Patch Level: 7
Release Status: release

Description:
When use mapfile from normal file that call function that use mapfile, the
first mapfile lost data.

Repeat-By:
I create 3 functions:
ww(){ echo "$@" | mapfile -C yy -c 1 -t TT ; }
xx(){ mapfile -C yy -c 1 -t TT < <(echo "$@") ; }
yy(){ echo "$@" ;}

I create 1 normal file:
echo -e "Premiere ligne" A{1..45} "\nDeuxieme ligne" B{1..45} "\nTroisieme
ligne" C{1..45} >fic.txt

This work but I can't use array TT:
mapfile -C ww -c 1 UU