Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Implement CDPATH mechanism in Zsh script
- X-seq: zsh-users 21844
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Implement CDPATH mechanism in Zsh script
- Date: Tue, 6 Sep 2016 23:04:42 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=tTUun4Excne+cEe4cH8lyVtWPdOoMilrjqfctPaSMgk=; b=IBxS24Zb6EKBscNOKaj8CQLb/Tfg4HmIsltr64F2IXozj47yO5Sx1rQ2xrX/evt1Q6 olSGo/YJ4WxiFXjBPvkB1eipq0xL9jTyVjBjF7rOxpKnv3cdIDLFN3J/nZazsdrtsRk+ 9MB/VNDjGAqScd8hYNw7h+8ZosfVDBGkTkjmFrmmvxY3Wf3UxNNk9DpzweBEtubAFKlN fharMgot3MbBVFe0p8BnRLp/IfX8e5QRh0pqLdo1wwYLBb42RdSh+TyOe22NMZteNqVt +qHPLGnRuX5Icl3lWg/8/7Utf3u5FDz7PrRtZipHrRjsp6WpLW/Hifsh1TPhwKdbFCGy vlNw==
- In-reply-to: <CAKc7PVABbS7gD6DkJSU4g_uxLCQ=79LrCC=CP9_0s-YefOgeJg@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVABbS7gD6DkJSU4g_uxLCQ=79LrCC=CP9_0s-YefOgeJg@mail.gmail.com>
On Sep 3, 11:52pm, Sebastian Gniazdowski wrote:
}
} I need to determine how CWD changed after: cd "not-absolute-path" -
} and do this in Zsh script. How to re-implement that mechanism in
} script? Any neat tricks or maybe an official way?
Do you mean something other than comparing $OLDPWD to $PWD ?
Or are you trying to predict how the current directory is going to be
changed by "cd", without actually executing "cd"?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author