FS#5912 - broken auto-complete in shell

Attached to Project: Arch Linux
Opened by Vitaly (mutronix) - Wednesday, 29 November 2006, 12:27 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 14 April 2007, 10:09 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Auto-complete in shell no longer works under dir which constains spaces in it's name.

example:

$ mkdir -p dir1/dir\ 2/dir3
$ ls dir<TAB>1/di<TAB>r\ 2/<TAB><TAB>...

nothing happens here.
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Saturday, 14 April 2007, 10:09 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Wednesday, 29 November 2006, 12:32 GMT
Can't reproduce it here. What shell do you use? Bash is working fine here.
Comment by Roman Kyrylych (Romashka) - Wednesday, 29 November 2006, 14:35 GMT
non-reproduceable here too.
Comment by Vitaly (mutronix) - Wednesday, 29 November 2006, 15:23 GMT
I'm using bash. It's not working for gnome-terminal, xterm, urxvt and even vc terminal. I just created test user to check. Same problem. Auto-complete stucks after any dir with space in it's name. I have 2 boxes (arch and arch64) and both have this problem... both is up to date. I guess, maybe it's some kind of bug in readline's behavior not in bash. I don't think that this is my miss :\
Comment by Jan de Groot (JGC) - Wednesday, 29 November 2006, 15:28 GMT
Do you have some bash-completion package and/or scripts installed? I don't use those scripts, so it is possible that you installed some package and/or script that breaks this specific autocompletion. It's reproducible on two of your systems on two different architectures, so this is a confirmed bug in that case.
Comment by Vitaly (mutronix) - Wednesday, 29 November 2006, 16:35 GMT
I got it! Just downgraded readline from readline-5.2-1 to readline-5.1.4-1 and got my auto-complete back working properly. Any suggestions?

2Jan de Groot:

No, I have no special scripts installed.
Comment by Roman Kyrylych (Romashka) - Wednesday, 29 November 2006, 22:46 GMT
Here is nice description: http://bugs.archlinux.org/task/5915 (I closed it as duplicate though)
Comment by Jan de Groot (JGC) - Wednesday, 29 November 2006, 23:05 GMT
Looking at the forum post referenced in the closed bugreport, this is caused due to incompatibility between readline 5.2 and bash 3.1. The bash-3.2-1 package I'm using from testing is not affected, which is the reason why I can't reproduce it. This is either caused by a real incompatibility, or the simple fact that bash 3.1 hasn't been recompiled after the readline upgrade.
Comment by Scott H (stonecrest) - Thursday, 30 November 2006, 04:37 GMT
FWIW, I tried recompiling bash and the problem persists.
Comment by Scott H (stonecrest) - Thursday, 30 November 2006, 04:45 GMT
Indeed, using bash from testing fixes the issue.

Loading...