[gnu.bash.bug] Directory Stack Element Access Sure Would Be Nice in Bash...

rad) (07/18/89)

Brian,
    Hi!  Thanks for bash 1.02.  It has nearly all the features I rely on in
tcsh, so I am *almost* ready to punt tcsh and switch to bash.  Except for
one of the most useful features in tcsh - directory stack element access.

I often work with two parallel trees of sources, and want to do some repetitive
access on them like diff'ing and sccs'ifying.  So if I cd to the first and
then pushd to the second, I can use "diff =1/foo ." to find the diff between
the local version and that in the other tree.  I even sometimes have occasion
to deal with 3 trees of stuff and want to figure out what's what...

So, it should be fairly easy to add - can I convince you?

P.S.  What is $OLDPWD and can I somehow use it to do some of this?  It is
mentioned in the FEATURES file but not coherently (a mention of it for ~-/foo).
Are $PWD and $OLDPWD the first and second elements in the dir stack?

Thanks,
    Bob