• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

DIRS command vs. docs

Charles Dye

Super Moderator
Staff member
May 20, 2008
Albuquerque, NM
According to the help file, DIRS dumps the directory stack most-recent-first, i.e. the first directory listed will be restored by POPD. In fact it's the reverse; the directory stack is displayed most-recent-last, and POPD will return to the last entry displayed.

I don't know whether this is a bug or a doc error. FWIW, CMD.EXE's PUSHD command, sans args, dumps the directory stack most-recent-first.

(No, I personally can't imagine caring. But see the thread "A particular program that I like to use..." in the TCC/LE support forum for an example of a program which seems to use the directory stack to fake a directory history; the format may be significant to that program!)
Top Bottom