Terminal view after pressing TAB gives full path

Hi everyone,
Usually when i did, for example:
:~/> vi documents/<tab><tab>
i would get list of files in ‘documents’ dir on my konsole.
:~/> vi documents/
doc1 doc2 doc3

Bu now in 11.4 when i do that i get whole path, like this for example:
:~/> vi documents/<tab><tab>
:~/> vi documents/
documents/doc1 documents/doc2 documents/doc3

Any one has any idea how to make it look “old” style?

Do not know about that change, nor about how cure it. But this “file name” completion" is a feature of the shell (bash I guess in your case). Thus your thread title is a bit confusing.

well…that what i sought too, but why ‘vi’ and ‘ll’ give me different views? Try it
:~/>vi <tab><tab>
and
:~/>ll <tab><tab>

And about title…i really do not know how could i have described my question in few words that would make good title.

This is 11.2:

henk@boven:~> vi
Display all 123 possibilities? (y or n)
henk@boven:~> vi
henk@boven:~> ll
Display all 123 possibilities? (y or n)

As you did not post what you got, I have no comment on that.

I would have posted this in Pre-release/Beta to begin with because 11.4 is still not released.
I would have given it a title like:
“File name expansion of bash behaves different in 11.4”.

On 2011-03-04 20:36, mkudro wrote:
>
> well…that what i sought too, but why ‘vi’ and ‘ll’ give me different
> views? Try it
> :~/>vi <tab><tab>
> and
> :~/>ll <tab><tab>

Youcould have given the output, I don’t have 11.4 RC running just now to
check. However, depending on what program I use in 11.2, I get different
results

cer@Telcontar:~> ls
Display all 957 possibilities? (y or n)
cer@Telcontar:~> acroread
Display all 123 possibilities? (y or n)
cer@Telcontar:~> evince
Display all 139 possibilities? (y or n)
cer@Telcontar:~> evince ^C

Notice the different numbers? Another sample:

Code:

*> cer@Telcontar:~/Documentation/PC/HD/seagate> ls
*> 100129581.pdf barracuda_ST3250310AS_250GB/
power_mgmt_fs.html
*> 100529369b_ST31000528AS.pdf ds_ufamily_1533002_2001_06.pdf
test_software/
*> barracuda/ index_papers.html
ultra_ata100.html
*> barracuda_ST3160815A_160GB/ isolators_mount_drives.html
*> cer@Telcontar:~/Documentation/PC/HD/seagate> evince
*> 100129581.pdf barracuda_ST3160815A_160GB/
test_software/
*> 100529369b_ST31000528AS.pdf barracuda_ST3250310AS_250GB/
*> barracuda/ ds_ufamily_1533002_2001_06.pdf
*> cer@Telcontar:~/Documentation/PC/HD/seagate> evince

The bash completion feature knows that evince does not display html, and
only lists those files that evince displays, ie, pdfs in this example.

So, about vi, it also must have been configured - but I have no idea where.

And yes, this is called bash completion :wink:


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

I am afraid bash tries to be clever (too clever) >:(

On 2011-03-05 15:36, hcvv wrote:
>
> I am afraid -bash- tries to be clever (too clever) >:(

It works very well for me… :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)