You are not logged in.

#1 2006-11-29 11:57:54

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Tab-completion after directories containing spaces broken

Hello,

Some days ago I noticed that tab-completion doesn't work any more on files and directories that contain spaces. I'm pretty sure that it has. I'm using bash (3.1.17-1). I don't know when this happened, but my suspicion is that it is related to the upgrade to readline 5.2. Has anyone else experienced this? (Maybe someone can be a bit more specific than I smile)

Hm, here are some other perhaps interesting settings on my system:

LOCALE="en_US.ISO-8859-1"
KEYMAP="sv-latin1.map.gz"
CONSOLEFONT="lat1-16.psfu.gz"
CONSOLEMAP="8859-1"

Regards

Offline

#2 2006-11-29 12:03:12

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: Tab-completion after directories containing spaces broken

Works fine for me.

[chris@marbles documents]$ pacman -Q | sed -ne '/bash/p;/readline/p'
bash 3.1.17-1
readline 5.2-1

Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#3 2006-11-29 12:35:29

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: Tab-completion after directories containing spaces broken

I'm sorry, just as I saw your answer I was about to give some further info.

To be more exact my problem is that when I've tab-competed a directory containing a space, I can't hit tab again to complete file or directory names further down in the hiararchy - nothing happens.

Offline

#4 2006-11-29 12:53:44

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: Tab-completion after directories containing spaces broken

Ahhh, that I agree with.


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#5 2006-11-29 13:02:09

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: Tab-completion after directories containing spaces broken

OK, good, now I don't feel so lonely any more smile It _has_ worked before, right?

A simple test:

$ mkdir "with space"
$ mkdir nospace
$ touch with space/hello
$ touch nospace/hi
$ ls nospace/hi            <------- Here, "hi" was written just by tabbing
$ ls with space/          <------- Here tab doesn't give any result

Same thing with brackets:

$ mkdir "[brackets]"
$ touch [brackets]/hmm  
$ ls [brackets]/         <------- Lots of tabbing here, no result

Also other (more or less "special") characters give this behaviour.

Offline

#6 2006-11-29 13:26:22

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: Tab-completion after directories containing spaces broken

To be honest, I can't remember.

Just tried it on my Debian system (running Sarge), and it works fine.


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#7 2006-11-29 15:21:44

augustob
Member
From: Florianópolis, Brazil
Registered: 2006-03-17
Posts: 135

Re: Tab-completion after directories containing spaces broken

It has, and it did break. No clues as to why, though. Pacman says bash build date is April 29, so that isn't it..

Offline

#8 2006-11-29 16:17:22

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: Tab-completion after directories containing spaces broken

OK, I reverted to readline 5.1.4 and that works. I guess it's time for a bug report.

Offline

#9 2006-11-29 17:33:44

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: Tab-completion after directories containing spaces broken

Offline

#10 2006-11-29 17:46:56

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: Tab-completion after directories containing spaces broken

So that's why it stopped working, I started noticing it yesterday.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#11 2006-11-29 22:47:39

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Tab-completion after directories containing spaces broken

Duplicate of bug #5912.


to live is to die

Offline

#12 2006-11-29 23:03:05

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: Tab-completion after directories containing spaces broken

Yes, sorry. Apparently I did a lousy search tongue

Offline

#13 2006-11-29 23:06:12

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Tab-completion after directories containing spaces broken

Bebo wrote:

Yes, sorry. Apparently I did a lousy search tongue

Search is not always working good. But I suggest sort bugs by date first (they are sorted by severity by default). wink


to live is to die

Offline

#14 2006-11-30 04:21:08

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: Tab-completion after directories containing spaces broken

Ahh, this was driving me insane, I wish I had seen this topic earlier. I hope this gets fixed soon, it's damn annoying.


I am a gated community.

Offline

#15 2006-11-30 08:20:25

TheBodziO
Member
From: Dukla, Poland
Registered: 2006-07-28
Posts: 230
Website

Re: Tab-completion after directories containing spaces broken

I'm struggling with the same problem for a couple of days. Once putting directory with spaces into typed path there's no more possible to complete further dirs and files in tree.

I thought that it was a kind of local configuration problem but I couldn't find any clue how to solve this situation neither in lib documentation nor on the web. Nice to know that my suspicion that there's a bug in readline is confirmed.

I'm waiting for solution (this is most annoying for me since I've got my music categorized in directories with spaces)!


It's not the best thing when they call you a "member" you know… wink

Offline

#16 2006-11-30 10:55:30

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Tab-completion after directories containing spaces broken

This issue is fixed in bash-3.2-1 from Testing.


to live is to die

Offline

#17 2006-11-30 11:02:49

TheBodziO
Member
From: Dukla, Poland
Registered: 2006-07-28
Posts: 230
Website

Re: Tab-completion after directories containing spaces broken

Sure I'll upgrade. Thx for info! smile

Still I'm also interested in "why"? big_smile


It's not the best thing when they call you a "member" you know… wink

Offline

#18 2006-11-30 11:06:34

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Tab-completion after directories containing spaces broken

TheBodziO wrote:

Still I'm also interested in "why"? big_smile

Probably due to upgrade of readline while bash was not recompiled.


to live is to die

Offline

#19 2006-11-30 11:13:11

slubman
Member
From: Grenoble (France)
Registered: 2004-08-04
Posts: 86
Website

Re: Tab-completion after directories containing spaces broken

I've recompiled bash 3.1 with the new readline, and it doesn't solve the problem.

Offline

#20 2006-11-30 11:24:35

TheBodziO
Member
From: Dukla, Poland
Registered: 2006-07-28
Posts: 230
Website

Re: Tab-completion after directories containing spaces broken

Romashka wrote:

Probably due to upgrade of readline while bash was not recompiled.

In bug report somebody mentioned that he recompiled bash against current readline without success in resolving the issue (so did slubman a moment ago). I think that's rather bash itself  or bash/readline (not likely since new bash works properly) problem.

Anyway I'm stopping before I'll turn this thread into bug system wink I'm going to watch bug reports since now without "bugging" you wink (a insectorium in one phrase wink )

Thanks a lot for your replies and interest!


It's not the best thing when they call you a "member" you know… wink

Offline

#21 2006-12-01 15:02:21

augustob
Member
From: Florianópolis, Brazil
Registered: 2006-03-17
Posts: 135

Re: Tab-completion after directories containing spaces broken

Got bash from testing and pacman -U'd it manually. Works wonders and my keyboard thanks you; now he doesn't get violently blamed for lack of autocompletion.

Offline

Board footer

Powered by FluxBB