Documentation Search order

Oct 18, 2008
346
2
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
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,689
106
Albuquerque, NM
prospero.unm.edu
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.)
 
Oct 18, 2008
346
2
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.)

Thanks -- that works just fine
 

Similar threads