Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Directory completion acts as if CHASE_LINKS is set



On Sep 6,  1:42pm, Jan Larres wrote:
} Subject: Re: Directory completion acts as if CHASE_LINKS is set
}
} On 06/09/13 03:31, Bart Schaefer wrote:
} > In any case, this is a problem inherent in the way globbing interprets
} > "../" -- filename generation does not obey the same rules as "cd" path
} > resolution.
} 
} Thanks, that patch does solve the issue with cd to a certain degree. But 
} as you said yourself it is not specific to cd - for example, 'ls ../[TAB]'
} has the same problem.

No, you misunderstand.  It actually *is* specific to cd -- ls is an
external command and will physically follow ../, so it is correct for
completion for ls to do so as well.

Only in shell builtins can ../ refer to $PWD:h/, and the only builtins
that have this behavior are cd and pushd.



Messages sorted by: Reverse Date, Date, Thread, Author