Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: `exec env -i OLDPWD=$OLDPWD zsh` doesn't work
- X-seq: zsh-workers 40350
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh Hackers' List <zsh-workers@xxxxxxx>
- Subject: Re: `exec env -i OLDPWD=$OLDPWD zsh` doesn't work
- Date: Fri, 13 Jan 2017 15:24:13 +0000
- Cms-type: 201P
- In-reply-to: <20170113151937.5df66376@pwslap01u.europe.root.pri>
- 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
- Organization: Samsung Cambridge Solution Centre
- References: <CAM4j=kO9MSg-72LWog0N3OPumh8jy_xt4_T_fXEXAKQEk3eoXg__31721.773549407$1484300384$gmane$org@mail.gmail.com> <CGME20170113150404epcas4p2b15a4b2d8af580d4b38d8c69e13737a7@epcas4p2.samsung.com> <20170113145919.GB4363@fujitsu.shahaf.local2> <20170113151937.5df66376@pwslap01u.europe.root.pri>
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