The - command

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
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.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,410
40
Albuquerque, NM
prospero.unm.edu
#2
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?
It's mentioned in the help for CDD. I agree that it would be nice if WHICH recognized it.
 
#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