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

Documentation Search order

Discussion in 'Support' started by fpefpe, Sep 13, 2012.

  1. fpefpe

    Joined:
    Oct 18, 2008
    Messages:
    238
    Likes Received:
    1
    Hello -- The doc says that when searching for a command typed at the command line, the first search is for an internal command, then batch file, starting in the current directory --

    Is there a way to change this?, ie not looking in the current directory? I think that this is the way its done in unix, and that is why there is a "." in the PATH env var --

    Thanks
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,280
    Likes Received:
    38
    See the help for the PATH command, specifically the next-to-last paragraph. In short, TCC works the same way as the Unix shells you mention: a dot in the search path delays the search of the current directory until that point in the search path. (I don't think there is any way to completely disable the search of the current directory; that might be a useful feature to suggest.)
     
  3. fpefpe

    Joined:
    Oct 18, 2008
    Messages:
    238
    Likes Received:
    1
    Thanks -- that works just fine
     

Share This Page