Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 626528

Summary: app-shells/bash-completion ctrl-Z signal freezes the shell
Product: Gentoo Linux Reporter: Miroslav Olšák <mirek>
Component: Current packagesAssignee: Gentoo Shell Tools project <shell-tools>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein, shell-tools
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Miroslav Olšák 2017-07-29 13:39:20 UTC
Assumes installed
  bash (tested 4.3_p48-r1)
  bash-completion (tested 2.4-r1, 2.7)

Reproduction:
Create an executable script "test.sh":
```
#!/bin/bash
sleep 10
```
and an empty file "something".

Launch bash so that bash_completion is loaded.
$ ./test.sh some[tab]thing [enter]
[ctrl-Z]
--> The shell is broken, not showing any typed characters.

Link to Gentoo:
The bug is not reproducible without Gentoo patch
https://bitbucket.org/mgorny/bashcomp2/downloads/bashcomp-2.0.2.tar.gz
which alters the function "_completion_loader"

Related bash-completion issue:
https://github.com/scop/bash-completion/issues/148