Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Implement CDPATH mechanism in Zsh script



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