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

The - command

Discussion in 'Support' started by Jim Cook, Jan 22, 2009.

  1. Jim Cook

    Joined:
    May 20, 2008
    Messages:
    604
    Likes Received:
    0
    TCC 9.02.154 Windows XP [Version 5.1.2600]
    TCC Build 154 Windows XP Build 2600 Service Pack 3

    When I type a single dash "-" I toggle between the two most recent folders.
    However, using "which -" or trying to find help for it does not appear to
    work. ("- is an unknown command".)
    I believe the command is intentional. Is it actually documented somewhere I
    should have found?

    --
    Jim Cook
    2009 Saturdays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
    Next year they're Sunday.
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,311
    Likes Received:
    39
    It's mentioned in the help for CDD. I agree that it would be nice if WHICH recognized it.
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,869
    Likes Received:
    83
    It's not a command; it's recognized by the parser after expansion but before searching for commands. So WHICH has no idea of its existence (any more than WHICH can recognize <, >, or |).
     
  4. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    dcantor wrote:
    | ---Quote (Originally by Jim Cook)---
    | TCC 9.02.154 Windows XP [Version 5.1.2600]
    | TCC Build 154 Windows XP Build 2600 Service Pack 3
    |
    | When I type a single dash "-" I toggle between the two most recent
    | folders.
    | However, using "which -" or trying to find help for it does not
    | appear to
    | work. ("- is an unknown command".)
    | I believe the command is intentional. Is it actually documented
    | somewhere I
    | should have found?
    | ---End Quote---
    | I suspect that it's simply a relative directory specification, and TC
    | is just doing an implicit CD to the path you specified. Try
    | entering %TEMP for example, and TC will do an implicit CD %TEMP.

    It is documented as the symbolic parameter of the CD and CDD commands for
    "immediate previous working directory". When used without the actual
    command, it is indeed used as the target of an "implicit CDD" command.
    --
    Steve
     

Share This Page