Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: cd - and $OLDPWD, bug in the manual?
- X-seq: zsh-users 10086
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh User <zsh-users@xxxxxxxxxx>, pws@xxxxxxxxxxxxxxxxx
- Subject: Re: cd - and $OLDPWD, bug in the manual?
- Date: Sun, 26 Mar 2006 19:40:24 +0100
- In-reply-to: Message from Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> of "Sat, 25 Mar 2006 23:36:43 -0800." <060325233643.ZM6802@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> The manual DOESN'T say that you can have any useful effect by assigning
> OLDPWD. You can assign to PWD as well, but that doesn't cause a "cd"
> to magically occur.
We could make OLDPWD settable by making it special, though I don't think
we're morally obliged to. Spoofing the previous directory sort of makes
sense. Spoofing the current directory doesn't, at least not without
opening a large can of worms.
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page still at http://www.pwstephenson.fsnet.co.uk/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author