Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: `exec env -i OLDPWD=$OLDPWD zsh` doesn't work



On Fri, 13 Jan 2017 15:19:37 +0000
Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
> (This bit moved to zsh-workers.)
> 
> OLDPWD seems to be slightly weirdly implemented at the moment.

PWD is similar; it does *not* reflect the internal variable containing
the shell's internal notion of the current directory (never mind what
the system thinks is the current directory which is different again).

% (PWD=/foo/bar; print ~+)
/export/home/pws/src/zsh-git/code

pws



Messages sorted by: Reverse Date, Date, Thread, Author