[opensuse] 11.4 - Where did the trailing '/' go in bash-completion for ls??
Guys, What is wrong with the 'tab' to complete directory names in bash? eg: ls Docu<tab> gives: Documents but not Documents/ This seems somewhat random: 23:14 alchemy:~> cd ~/tde tde/ tde// Why does it give me the options of tde//?? The directory is just a normal directory: 23:14 alchemy:~> ls arch bin cnf Desktop Downloads img mmedia public_html scr suse tde 23:17 alchemy:~> cd Downloads/ 23:17 alchemy:~/Downloads> cd ~/tde tde/ tde// Err.. Is this a bug or a feature. 11.3 was normal, so I don't know what's up with 11.4... -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* David C. Rankin <drankinatty@suddenlinkmail.com> [03-12-11 00:19]:
What is wrong with the 'tab' to complete directory names in bash? eg:
ls Docu<tab>
gives:
Documents
but not
Documents/
This seems somewhat random:
You *probably* have a Documents *file* in your path. I do not and I do get the trailing "/". Quick on the trigger tonight :^) -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 12 March 2011 00:34:50 Patrick Shanahan wrote:
* David C. Rankin <drankinatty@suddenlinkmail.com> [03-12-11 00:19]:
What is wrong with the 'tab' to complete directory names in bash? eg: ls Docu<tab>
gives: Documents
but not
Documents/
This seems somewhat random: You *probably* have a Documents *file* in your path. I do not and I do get the trailing "/".
Quick on the trigger tonight :^)
Tapping 'tab' twice should display the available completion options, i.e. 'Documents/', 'Documents-Business/', 'Documents-Personal/' and so on, right? It isn't possible to have both a directory 'Documents' and file 'Documents' residing in the same directory. :-) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Carl Hartung <suselinux@cehartung.com> [03-12-11 00:53]:
Tapping 'tab' twice should display the available completion options, i.e. 'Documents/', 'Documents-Business/', 'Documents-Personal/' and so on, right?
Yes, but the OP did not indicate that action was attempted. In the above, "Documents" *would* be the first offer.
It isn't possible to have both a directory 'Documents' and file 'Documents' residing in the same directory.
correct -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 03/11/2011 11:51 PM, Carl Hartung wrote:
Tapping 'tab' twice should display the available completion options, i.e. 'Documents/', 'Documents-Business/', 'Documents-Personal/' and so on, right? It isn't possible to have both a directory 'Documents' and file 'Documents' residing in the same directory.
:-)
Nope - no such coincidence :-) 23:29 alchemy:~/tde/tnotes> ls ~/ arch bin cnf Desktop Downloads img mmedia public_html scr suse tde 12:07 alchemy:~/tde/tnotes> ls -1 ~/ arch bin cnf Desktop Downloads img mmedia public_html scr suse tde 12:07 alchemy:~/tde/tnotes> ls ~/D Desktop/ Downloads/ 12:07 alchemy:~/tde/tnotes> cd ~/tde tde/ tde// It is really random. Sometimes it works, sometimes it doesn't. 12:07 alchemy:~/tde/tnotes> cd ~/img img/ img// 12:07 alchemy:~/tde/tnotes> echo $PATH /opt/kde3/bin:/usr/lib64/mpi/gcc/openmpi/bin:/home/david/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin Dunno. I bet if you spend time in a console, you will see it before to long :) -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
David C. Rankin wrote:
It is really random. Sometimes it works, sometimes it doesn't.
Dunno. I bet if you spend time in a console, you will see it before to long :)
FWIW, I see your symptoms sometimes. But I have a variety of different OS and none of them is 11.4 :( I've never paid it much attention, but next time I see it, I'll note the details. Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Patrick, Here's where you appeared to 'jump the gun' Mr. 'Quick on the trigger' :-)
You *probably* have a Documents *file* in your path. I do not and I do get the trailing "/".
See? You suggested the OP "probably" had a "Documents *file*" in his path (your words and emphasis.) I subsequently suggest to / remind the OP to try 'tapping tab twice' to display the available completion options:
Tapping 'tab' twice should display the available completion options, i.e. 'Documents/', 'Documents-Business/', 'Documents-Personal/' and so on,
Here you misinterpret my suggestion to mean I'd misunderstood the OP's post:
Yes, but the OP did not indicate that action was attempted. In the above, "Documents" *would* be the first offer.
Yes, it would. Which is precisely why I suggested it and supplied those specific (germane) examples. :-)
It isn't possible to have both a directory 'Documents' and file 'Documents' residing in the same directory.
correct
Correct! I feel better now that we're back in sync! regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Carl Hartung
-
Dave Howorth
-
David C. Rankin
-
Patrick Shanahan