Opened 15 years ago
Closed 15 years ago
#4945 closed bug (fixed)
bash4 tab completion causes shell to hang/crash
Reported by: | augiedoggie | Owned by: | korli |
---|---|---|---|
Priority: | high | Milestone: | R1 |
Component: | Applications/Command Line Tools | Version: | R1/alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
The new version of bash is having problems with tab completion. When I type 'cd /' and then a tab to complete the path, the shell either crashes or hangs. This happens on gcc2 and gcc4 on real hardware and via virtualbox.
Attachments (1)
Change History (8)
comment:1 by , 15 years ago
Component: | - General → Applications/Command Line Tools |
---|---|
Owner: | changed from | to
Priority: | normal → high |
comment:2 by , 15 years ago
comment:4 by , 15 years ago
I haven't tried removing the files, but, it does go away with programmable completion disabled using 'shopt -u progcomp' . I did look into it a little bit. Seems to be triggered somewhere in the _filedir() function of /etc/bash_completion.
I can test removing the files later.
comment:5 by , 15 years ago
Many other commands are causing the shell to exit. I've tried chown/chgrp/kill/find/scp/etc... and all of these do the same thing when attempting to complete. I've also tried using the bash_completion file from Ubuntu and I get the same results. Moving the bash_completion files out of the way does allow the commands to work using basic file completion.
comment:6 by , 15 years ago
Found a possible fix after searching through the Ubuntu launchpad diffs. The full diff file is here. Attaching a small patch which seems to fix the problem for me.
comment:7 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fix the issue by applying patches 001 to 035 in hrev34030
This doesn't seem to be the case globally....for cd I can reproduce it but for instance just tab completing a path to a file such as an executable works for me at least, maybe a problem with the completion rules file?