** 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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1614253

Title:
  cd ../ fails to complete directories from symbolic link to another
  filesystem

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1614253/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to