From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: schaefer@brasslantern.com (Bart Schaefer)
Cc: zsh-workers@math.gatech.edu
Subject: Re: PWD parameter
Date: Sun, 24 May 1998 22:02:28 -0500 (CDT) [thread overview]
Message-ID: <199805250302.WAA28908@hzoli.home> (raw)
In-Reply-To: <980524191600.ZM10165@candle.brasslantern.com> from Bart Schaefer at "May 24, 98 07:16:00 pm"
> } This is exacly how zsh behaves after typeset +r PWD.
>
> Not quite. For example, my $HOME is /home/schaefer, but that's really a
> symlink to /extra/home/schaefer. In zsh 3.0.5, if I do
>
> cd $HOME
> typeset +r PWD
> unset PWD
> PWD=/extra/home/schaefer
> echo $PWD
>
> then what I get back is /home/schaefer. *That* seems a bit odd.
PWD has nullsetfn as the write function. Since PWD is special, unset
just sets a flag in the Param node, it does not really unset anything.
The PWD=... assignment clears this flag, restoring the old value of PWD.
The assigned value is lost.
Zoltan
next prev parent reply other threads:[~1998-05-25 3:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-24 4:44 Zoltan Hidvegi
1998-05-24 5:57 ` Bart Schaefer
1998-05-24 7:51 ` Zoltan Hidvegi
1998-05-24 16:42 ` Bart Schaefer
1998-05-24 17:38 ` Zoltan Hidvegi
1998-05-25 2:16 ` Bart Schaefer
1998-05-25 3:02 ` Zoltan Hidvegi [this message]
1998-05-25 4:02 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199805250302.WAA28908@hzoli.home \
--to=hzoli@cs.elte.hu \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).