Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: cd, pwd and symlinks
- X-seq: zsh-users 2620
- From: Hubert Canon <Hubert.Canon@xxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: cd, pwd and symlinks
- Date: Mon, 27 Sep 1999 15:34:31 +0200
- In-reply-to: <19990927140204.A10336@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19990927105103.A21392@xxxxxxxxxxxxxxxxx> <19990927140204.A10336@xxxxxxxxxxxxxxxxxxxxxxx>
Adam Spiers écrivait :
> Hubert Canon (Hubert.Canon@xxxxxxxx) wrote:
> > I have strange behaviours with symlinks to directories.
>
> [snip]
>
> Put `setopt chaselinks' or `setopt chasedots' in your .zshrc. From
> the info pages:
Thank you. I didn't see these options.
But I am a bit confused, because I would like that `cd ..' had the
present behaviour (when these options are unset) and that I use
another construct (like `cd ./..' for example) when I want to follow
links.
youkaidi ~ % mkdir foo
youkaidi ~ % mkdir bar
youkaidi ~ % mkdir foo/bar
youkaidi ~ % cd bar
youkaidi ~/bar % ln -s ../foo/bar foo
youkaidi ~/bar % cd foo
youkaidi ~/bar/foo % l .. # that's why I prefer chase_links unset
bar/
youkaidi ~/bar/foo % cd ..
youkaidi ~/bar % cd foo # that's why I prefer chase_dots unset
youkaidi ~/bar/foo % cd ./..
youkaidi ~/foo % # this the new behaviour I wish
Messages sorted by:
Reverse Date,
Date,
Thread,
Author