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

Re: accessing directory stack entries changed



>between beta13 and beta14, the magic required to access directory
>stack entries changed from '=' to '~' (i.e. 'cd /; pushd /tmp; echo
>=1' was changed to 'cd /;pushd /tmp; echo ~1').  Was this an intended
>change or merely a result of the code cleanup in subst.c?  It's at
>least not mentioned anywhere (neither Doc nor ChangeLog nor README).

It's intentional.  It is documented in the man page, but should
probably go in the FAQ too.

>One effect is that the old '=-' for accessing the last pushed entry of
>the stack is gone because '~-' is an alias for $OLDPWD.

~-0 is the bottom entry of the stack.  Less convenient, but then, how
often do you want it, compared to ~-?

-zefram




Messages sorted by: Reverse Date, Date, Thread, Author