* zstyle cd ignore-parents broken? (Zsh-5.0.5)
@ 2014-03-03 15:00 Francisco Borges
2014-03-03 17:06 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Francisco Borges @ 2014-03-03 15:00 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 739 bytes --]
Hi,
I either found a minor bug or my capacity to screw my shell configuration
was boosted.
[...]
I had this zstyle in place for years, today I noticed cd does not ignore
the parent dir anymore.
On Zsh-5.0.5, completing on "mv foo ../[TAB]" parent dir is ignored as
expected. If I try "cd ../[TAB]" completion list includes the parent dir.
On Zsh 4.3.17, it works as expected (i.e. parent dir is ignored by both mv
and cd).
zsh -f
autoload -U compinit
compinit
zstyle ':completion:*:cd:*' ignore-parents parent pwd
zstyle ':completion:*:mv:*' ignore-parents parent pwd
mv foo ../[TAB] # works as expected on both 5.0.5 and 4.3.17
cd ../[TAB] # works as expected only on 4.3.17
Kind regards, (and thanks for Zsh!)
--
Francisco
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: zstyle cd ignore-parents broken? (Zsh-5.0.5)
2014-03-03 15:00 zstyle cd ignore-parents broken? (Zsh-5.0.5) Francisco Borges
@ 2014-03-03 17:06 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2014-03-03 17:06 UTC (permalink / raw)
To: zsh-workers
On Mar 3, 4:00pm, Francisco Borges wrote:
}
} On Zsh-5.0.5, completing on "mv foo ../[TAB]" parent dir is ignored as
} expected. If I try "cd ../[TAB]" completion list includes the parent dir.
Hmm. It seems we get to choose between this bug and the bug described
in http://www.zsh.org/mla/workers/2013/msg00736.html ... because the
fix for the latter is what breaks the former. _path_files needs the
original $PREFIX to implement ignore-parents, but follows symlinks badly
if the prefix isn't pre-expanded and moved to the -W argument.
If anyone can suggest an approach that allows both to work, I'm all ears.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-03 17:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-03 15:00 zstyle cd ignore-parents broken? (Zsh-5.0.5) Francisco Borges
2014-03-03 17:06 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).