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

DIRS command vs. docs

Discussion in 'Support' started by Charles Dye, Apr 2, 2012.

  1. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,304
    Likes Received:
    39
    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!)
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,855
    Likes Received:
    83
    The help is wrong; DIRS has always displayed the directory stack most-recent-last.
     

Share This Page