bug-bash
[Top][All Lists]
Advanced

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

Re: insert-completions and tab-completions do not handle symlinks correc


From: Chet Ramey
Subject: Re: insert-completions and tab-completions do not handle symlinks correctly
Date: Wed, 14 Jul 2004 14:38:35 -0400

> Bash Version: 2.05b
> Patch Level: 0
> Release Status: release
> 
> Description:
> insert-completions (Meta-*), tab-completions (Tab-Tab), and possibly other 
> related functions do not handle symlinks correctly.
> 
> It appears that expanding completions for "/path/to/symlink/.." results in it 
> being considered the same as "/path/to", instead of 
> "/whatever-path-symlink-points-to/..".

By default, bash runs in `logical' mode, in which directory pathname
canonicalization is performed as defined by POSIX (it's in the
description of `cd', if you're curious).  In this mode, pathnames are
converted to a canonical form (lexically) before being used.  One of the
operations is the removal of  `..' as described above.

If you wish to run in physical mode, which will result in the behavior
you describe as correct, run `set -o physical'.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    chet@po.cwru.edu    http://tiswww.tis.cwru.edu/~chet/




reply via email to

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