zsh-workers
 help / color / mirror / code / Atom feed
* Wrong PWD with chasedots
@ 2014-11-11 10:35 Marc Finet
       [not found] ` <141111193532.ZM31133@torch.brasslantern.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Finet @ 2014-11-11 10:35 UTC (permalink / raw)
  To: zsh-workers

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-13 19:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-11 10:35 Wrong PWD with chasedots Marc Finet
     [not found] ` <141111193532.ZM31133@torch.brasslantern.com>
2014-11-13 18:46   ` Marc Finet
2014-11-13 19:44     ` Peter Stephenson

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).