Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Wrong PWD with chasedots
- X-seq: zsh-workers 33673
- From: Marc Finet <m.dreadlock@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Wrong PWD with chasedots
- Date: Tue, 11 Nov 2014 11:35:27 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=4Efc+Uf1MW/wS8FD9XZvDA+Ie9olp6FiW8Py4SvXF2Q=; b=BItyR5rQbdbpDUGEDBTJ7iifYG15T70DziAkuQ5yvrjZDbugZ4SGO7zGHvY80UTPAa THNOpAVySI5svBpEJANaj0uYZ5yTdEGvHOfFKa8wfLEScrjpSE2jZpstA25iXt83fLo0 HEKbbWpczY1/sD6g5Q24a5OJ+adwXabmvcfB5Bfz/F/T79ejSBvNV++63SsdSNRMXNDD CZHVXq5TOp3gnDWv+Ne1Tz2ZWt6AOoIeiUjFGu16svVQCjoCur9esbNiEGUgItERFDhi DjVgV2kOsxprST68jxJzVx++q83IEHFxbcXJOq3l3BEonTGht4FpVduAWy4q+48YqA4w 8Kcg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
I encountered a strange behavior with chasedots. pwd is correct but PWD
not. I re-used the example given in man page. With chasedots deactivated:
# pwd
/foo
# ls -l
total 0
lrwxrwxrwx 1 marc marc 8 Nov 7 20:07 bar -> /alt/rod
# cd bar
# pwd
/foo/bar
# pwd -P
/alt/rod
# echo $PWD
/foo/bar
# cd ..
# pwd
/foo
# echo $PWD
/foo
With chasedots activated:
# pwd
/foo
# setopt chasedots
# cd bar
# pwd
/foo/bar
# pwd -P
/alt/rod
# echo $PWD
/foo/bar
# cd ..
# pwd
/alt
# pwd -L
/alt
# pwd -P
/alt
# echo $PWD
/
I expected the last output to be /alt. Since my prompt uses $PWD and not
`pwd` I have a a wrong path reported in my prompt. I quickly started
looking at code, but thought that some here have better overview
of what's going on.
Thanks,
Marc.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author