[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash completion quirk or bug?

From: Paul Jarc
Subject: Re: bash completion quirk or bug?
Date: Fri, 20 Sep 2002 01:38:19 -0400
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu)

Barry J Gould <address@hidden> wrote:
> If I am in a directory via a SYMLINK, and I type ../otherdir<TAB> the
> completion puts a space at the end of otherdir instead of a slash ( / )
> I don't know of any reason for it to do this, so I'm assuming it's a bug.

The reason is that ".." may not mean what it might seem to mean.  The
textwise interpretation can be different from the statwise

> address@hidden var]# ll mail
> lrwxrwxrwx    1 root     root           10 Jun  3 06:12 mail -> spool/mail
> address@hidden var]# cd mail
> address@hidden mail]# ll ../log <hit tab, got space not slash>

ll would interpret this argument as /var/spool/log (assuming
/var/spool/mail is not also a symlink), but it's likely you would have
expected it to be interpreted as /var/log.  The difference in
completion warns you.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]