[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Directory completion problems
From: |
Chet Ramey |
Subject: |
Re: Directory completion problems |
Date: |
Sun, 22 Apr 2012 16:47:14 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 |
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 chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- Re: Directory completion problems, (continued)
- Re: Directory completion problems, Artur Rataj, 2012/04/19
- Re: Directory completion problems, Roman Rakus, 2012/04/19
- Re: Directory completion problems, Artur Rataj, 2012/04/19
- Re: Directory completion problems, Chet Ramey, 2012/04/19
- Re: Directory completion problems, Artur Rataj, 2012/04/19
- Re: Directory completion problems, Artur Rataj, 2012/04/20
- Re: Directory completion problems, Artur Rataj, 2012/04/20
- Re: Directory completion problems, Chet Ramey, 2012/04/22
- Re: Directory completion problems, Artur Rataj, 2012/04/23
- Re: Directory completion problems, Chet Ramey, 2012/04/25
- Re: Directory completion problems,
Chet Ramey <=