From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16351 invoked by alias); 10 Jan 2014 23:51:02 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18308 Received: (qmail 25819 invoked from network); 10 Jan 2014 23:50:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140110155033.ZM21189@torch.brasslantern.com> Date: Fri, 10 Jan 2014 15:50:33 -0800 In-reply-to: <8738kvejhg.fsf@gmail.com> Comments: In reply to Christian Neukirchen "On setting OLDPWD" (Jan 10, 8:15pm) References: <8738kvejhg.fsf@gmail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Christian Neukirchen , zsh-users@zsh.org Subject: Re: On setting OLDPWD MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jan 10, 8:15pm, Christian Neukirchen wrote: } } Is there any way to change where "cd -" would go to, without actually } cd'ing there? No, there isn't. "cd -" uses a directory name stored in an internal data field. The value of $OLDPWD is reset to the same string as that internal field upon each change of directory, but is not tied to it in any other way; only the "cd" command (and its relatives) alter it.