[Bash-completion-devel] Bug#506973: bash-completion: soft link completion is broken

pablo pablo.piti at gmail.com
Wed May 26 10:31:59 UTC 2010


Hello

A quite old bug, but I may have more precise informations

>> Bash completion fails to account for soft links properly:
>> 
>>   nslater at mahora: ~ $ mkdir -p dir-a/dir-b
>>   nslater at mahora: ~ $ ln -s dir-a/dir-b dir-c
>>   nslater at mahora: ~ $ touch doc-a
>>   nslater at mahora: ~ $ touch doc-b
>>   nslater at mahora: ~ $ cd dir-c
>>   nslater at mahora: ~/dir-c $ cat ../doc-
>>   doc-a doc-b

> This is because it considers "dir-c" as a sibling of dir-a, not as
> dir-a/dir-b. :(
way to reproduce:
pablo at desky:~$ mkdir symlink
pablo at desky:~$ touch toto
pablo at desky:~$ ln -s symlink /tmp/newlink
pablo at desky:~$ touch tmp/tutu
pablo at desky:~$ cd /tmp/newlink
pablo at desky:/tmp/newlink$ cat ../
tutu
pablo at desky:/tmp/newlink$ cat ../tutu
cat: ../tutu: No such file or directory

it looks like bash-completion just looks at the apparent directory structure, and does not follow the target of the links.
On the upper example, it checks into /tmp directory instead of checking into $HOME.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20100526/e0248143/attachment.pgp>


More information about the Bash-completion-devel mailing list