Setting IFS='*' causes bash to freeze on tab completion
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-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -D_GNU_SOURCE -DRECYCLES_PIDS -DDEFAULT_PATH_VALUE='/usr/local/bin:/usr/bin' -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic uname output: Linux aspire-7750.lan 4.5.7-300.fc24.x86_64 #1 SMP Wed Jun 8 18:12:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-redhat-linux-gnu Bash Version: 4.3 Patch Level: 42 Release Status: release Description: If you set IFS='*' in an interactive shell, then try to use tab completion, bash freezes and doesn't respond to any keyboard input. Running top from a different bash instance shows the first bash is consuming 100% CPU. The only way to kill it is by kill -9. Repeat-By: 1- Start an interactive bash. 2- IFS='*' 3- Type echo followed by space and then press tab twice. 4- Bash freezes.
Re: Setting IFS='*' causes bash to freeze on tab completion
On 7/1/16 8:23 AM, Ibrahim M. Ghazal wrote: > Bash Version: 4.3 > Patch Level: 42 > Release Status: release > > Description: > If you set IFS='*' in an interactive shell, then try to use tab > completion, bash freezes and doesn't respond to any keyboard input. > Running top from a different bash instance shows the first bash is > consuming 100% CPU. The only way to kill it is by kill -9. > > Repeat-By: > 1- Start an interactive bash. > 2- IFS='*' > 3- Type echo followed by space and then press tab twice. > 4- Bash freezes. This is not a problem with bash; it is a bug in the bash-completion package. You might consider filing a bug report with those package maintainers or with your vendor. (They might tell you that the assignment to IFS was not a wise thing to do.) Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/