Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: cd does not update $PWD in a timely fashion.
- X-seq: zsh-workers 46154
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Matthew Martin <phy1729@xxxxxxxxx>
- Subject: Re: cd does not update $PWD in a timely fashion.
- Date: Sat, 27 Jun 2020 20:42:08 +0000
- Cc: zsh-workers@xxxxxxx
- In-reply-to: <20200627072557.GA48532@CptOrmolo.darkstar>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAOzo9e6MHyWNbpeD=804ZyBAAQJVEQHTHZXYcmKGm9G2WNZHYg@mail.gmail.com> <20200626173248.GA31933@CptOrmolo.darkstar> <20200627072557.GA48532@CptOrmolo.darkstar>
- Sender: zsh-workers@xxxxxxx
Matthew Martin wrote on Sat, 27 Jun 2020 02:25 -0500:
> +++ b/Test/B01cd.ztst
> @@ -149,6 +149,21 @@ F:something is broken. But you already knew that.
> + chpwd_hook() { hook_pwd=$PWD; }
> + chpwd_functions=(chpwd_hook)
> + cd $mydir/cdtst.tmp/foo &&
> + (cd $mydir; mv $mydir/cdtst.tmp/{foo,bar}) &&
> + print $PWD &&
> + print $hook_pwd &&
> + cd . &&
> + print $PWD
Is the lack of «&&» on this line intentional?
> + print $hook_pwd &&
Run «unset chpwd_functions» here so as not to affect subsequent tests
(once they're added)? Compare 46067.
> +0q:cd . with moved PWD
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author