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

Possible bug with cd completion



Hi,

There seems to be a bug with completing directories to cd which are
numbers.
ie.

% zsh -f
% echo $ZSH_VERSION
4.0.2
% autoload -U compinit
% compinit
% setopt cdablevars
% pushd
~ ~/test
% mkdir 100
% cd 1

Pressing <tab> immediately after the 1 offers no completions. Add a 0 and
it works.

This seems to be a problem with the handling of cdablevars in _cd. It seems
to be trying to complete with a '~' prefixed, which hits the directory
stack. However, cdable vars doesn't actually do that when you execute the
cd itself.

Cheers,

Martin.




This e-mail message is CONFIDENTIAL and may contain legally privileged
information.  If you are not the intended recipient you should not  read,
copy, distribute, disclose or otherwise use the information in this e-mail.
Please also telephone or fax us immediately and delete the message from
your system.  E-mail may be susceptible to data corruption, interception
and unauthorised amendment, and we do not accept liability for any such
corruption, interception or amendment or the consequences thereof.



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