On 4/19/12 9:03 AM, Artur Rataj wrote: > I want the logical view, and I think there is one by now. But there is a > file missing in the logical directory, when cd ../ is completed from a > symlink. > > ~/projects/art/dev$ ls -la > drwxr-xr-x 6 art art 4096 2012-02-24 16:21 .bzr > lrwxrwxrwx 1 art art 18 2012-04-16 14:48 lib -> ../../hth/dev/lib/ > drwxr-xr-x 2 art art 4096 2012-02-24 16:21 src > ~/projects/art/dev$ cd lib/../ > .bzr/ lib/ > > I have made a test directory, to analyse the problem: > > ~/a$ ls -la > drwxr-xr-x 5 art art 4096 2012-04-19 14:50 . > drwxr-xr-x 80 art art 4096 2012-04-19 14:48 .. > drwxr-xr-x 2 art art 4096 2012-04-19 14:48 .hidden > drwxr-xr-x 2 art art 4096 2012-04-19 14:50 .java > lrwxrwxrwx 1 art art 7 2012-04-19 14:48 symlink -> ../test > ~/a$ cd symlink/../ > > hitting Tab gives: > > ~/a$ cd symlink/../.java/
I'm wondering if you're using a completion for cd. Using both bash-4.2.24 and the current development source, I get a completion of "symlink " (with a space instead of a slash appended, since readline needs some more work to do the same kind of logical directory traversal that bash does). Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/