[Bug 1614253] Re: cd ../ fails to complete directories from symbolic link to another filesystem
Dmitry Lapshin
lapshin.dv at mail.ru
Wed Aug 17 23:26:03 UTC 2016
** Description changed:
I have found strange fault of bash completion for cd builtin.
It's best described with an example.
Let's just think I have second drive mounted on /mnt
$ mkdir /tmp/bug && cd /tmp/bug
$ mkdir 1
$ ln -s link-1 1
$ ln -s link-fs /mnt
$ ls -l # To see contents
drwxrwxrwx ... 1
lrwxrwxrwx ... link-1 -> 1
lrwxrwxrwx ... link-fs -> /mnt
$ cd 1
$ cd ../[TAB TAB] # Works fine
1/ link-1/ link-fs/
$ cd ../link-1
$ cd ../[TAB TAB] # Works fine too
1/ link-1/ link-fs/
$ cd ../link-fs
$ cd ../[TAB TAB] # !! Ooups, nothing !!
$ ls ../[TAB TAB] # But hey, that works!
1/ link-1/ link-fs/
- $ cd ../[TAB TAB] # That works fine too
+ $ cd /mnt; cd ../[TAB TAB] # That works fine too
bin/ boot/ ...
$ cd ../
This behaviour looks very strange for me, and I don't know, is that
behaviour triggered by bash-completion or by bash itself, but that's
definetly a small, but annoying bug.
Running 16.04.1 (xenial), bash is 4.3-14ubuntu1.1, bash-completion is
1:2.1-4.2ubuntu1.1
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/1614253
Title:
cd ../ fails to complete directories from symbolic link to another
filesystem
Status in bash-completion package in Ubuntu:
New
Bug description:
I have found strange fault of bash completion for cd builtin.
It's best described with an example.
Let's just think I have second drive mounted on /mnt
$ mkdir /tmp/bug && cd /tmp/bug
$ mkdir 1
$ ln -s link-1 1
$ ln -s link-fs /mnt
$ ls -l # To see contents
drwxrwxrwx ... 1
lrwxrwxrwx ... link-1 -> 1
lrwxrwxrwx ... link-fs -> /mnt
$ cd 1
$ cd ../[TAB TAB] # Works fine
1/ link-1/ link-fs/
$ cd ../link-1
$ cd ../[TAB TAB] # Works fine too
1/ link-1/ link-fs/
$ cd ../link-fs
$ cd ../[TAB TAB] # !! Ooups, nothing !!
$ ls ../[TAB TAB] # But hey, that works!
1/ link-1/ link-fs/
$ cd /mnt; cd ../[TAB TAB] # That works fine too
bin/ boot/ ...
$ cd ../
This behaviour looks very strange for me, and I don't know, is that
behaviour triggered by bash-completion or by bash itself, but that's
definetly a small, but annoying bug.
Running 16.04.1 (xenial), bash is 4.3-14ubuntu1.1, bash-completion is
1:2.1-4.2ubuntu1.1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1614253/+subscriptions
More information about the foundations-bugs
mailing list