🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Bob Doolittle, {gatech,uunet,pet... Mon, 17 Jul 1989 21:04
Directory Stack Element Access Sure Would Be Nice in Bash...
#343
Author: Bob Doolittle, {gatech,uunet,pet...
Date: Mon, 17 Jul 1989 21:04
19 lines
1392 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads