Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in zsh builtin pwd when option CHASE_LINKS is set
- X-seq: zsh-workers 28011
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Bug in zsh builtin pwd when option CHASE_LINKS is set
- Date: Wed, 9 Jun 2010 12:08:31 +0200
- In-reply-to: <20100607131339.GA21964@xxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20040924074842.GJ2973@xxxxxxxxxxxxx> <20100607131339.GA21964@xxxxxxxxxxxxxxxxxxx>
On 2010-06-07 15:13:39 +0200, Vincent Lefevre wrote:
> I have the same problem with zsh 4.3.10 when I cd a directory
> with the following permissions: drwxrwxr-x. /bin/pwd and $PWD
> give the correct directory, but the pwd built-in gives ".".
FYI, the problem was not due to the permissions, but I've just noticed
that the parent directory was not readable (it just has the execution
bit for the group).
I can reproduce the bug on other machines, where I haven't applied
the patch:
xvii% setopt CHASE_LINKS
xvii% mkdir -p dir1/dir2
xvii% chmod 100 dir1
xvii% cd dir1/dir2
xvii% /bin/pwd
/home/vinc17/dir1/dir2
xvii% pwd
.
xvii%
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author