hitting tab key causes interactive bash to abort

2005-04-07 Thread schplurtz
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -I.  -I../bash -I../bash/include 
-I../bash/lib  -g -O2
uname output: Linux dormeur 2.6.8-1-686 #1 Thu Nov 25 04:34:30 UTC 2004 i686 
GNU/Linux
Machine Type: i386-pc-linux-gnu

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
In an interactive shell I was writting a function. Then, I hit the
tab key (I should have typed C-v tab)
Bash exited immediately  with this error message :

malloc: ../bash/subst.c:5717: assertion botched
free: start and end chunk sizes differ
last command: sansblanc() {
Stopping myself...Aborted

Repeat-By:
easy to reproduce : simply type in the following 2 lines, then hit the
tab key :
sansblanc() {
eval "${1}=\"\$(echo \"\$$1\" | sed -e 's/^[ 

Fix:
Teach users to type C-v tab when they don't need completion ;-)

___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash


History expansion in multiline string, within single quote

2018-08-09 Thread schplurtz
Configuration Information [Automatically generated, do not change]: 
Machine: x86_64 
OS: linux-gnu 
Compiler: gcc 
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-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-7fckc0/bash-4.4=. -fstack-protector-strong 
-Wformat -Werror=format-security -Wall -no-pie -Wno-parentheses -Wno 
-format-security 
uname output: Linux vmsch003 4.9.0-7-amd64 #1 SMP Debian 4.9.110-3+deb9u1 
(2018-08-03) x86_64 GNU/Linux 
Machine Type: x86_64-pc-linux-gnu 

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

Description: 
Bug happens in an interactive shell. 

this works as expected, no history expansion : 
echo "foo"'!bar'"qux" 

but this fails, bash tries to hist-expand !bar', which it should not. 
echo "foo 
"'!bar'"qux" 

-bash: !bar': event not found 

I just compiled bash 4.4.18 and tested, the bug is there too.