Documentation Search order

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

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,385
39
Albuquerque, NM
prospero.unm.edu
#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.)
 
Oct 18, 2008
263
1
#3
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