Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!westford.ccur.com!rad From: rad@westford.ccur.com (Bob Doolittle, {gatech,uunet,petsd}!masscomp!rad) Newsgroups: gnu.bash.bug Subject: Directory Stack Element Access Sure Would Be Nice in Bash... Message-ID: <8907171704.aa04779@nexus.westford.ccur.com> Date: 17 Jul 89 21:04:44 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 19 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