Documentation Search order

Oct 18, 2008
339
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,469
88
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
339
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
Thread starter Title Forum Replies Date
samintz How to? Search for %(command) in Help? Support 1
Joe Caverly Quick Search in eWriter Help Support 1
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
fpefpe How to? gosub and label search Support 4
vefatica Command history search is off Support 7
D Directory History Window with wildcard search Support 3
L LIST's pop-up search loses focus in a Windows Terminal window Support 15
D Faster string search Support 8
R How to? Dir specific file search patterns with spaces in the pathnames? Support 6
Joe Caverly Pipe into VIEW and search Support 12
G Extended directory search not working Support 4
rps How to? @search problem Support 2
M Documentation Q.Search doesn't support selection? Support 1
vefatica Keyword - instant search? Support 1
vefatica WAD Help Search broken? Support 3
Joe Caverly LIST /T (search for Text) Support 2
M Problem with Extended Search and non-ASCII characters in directories names Support 3
H FuzzyCD: JPSTREE vs. Everything Search Support 1
J Extended directory search has stopped working Support 9
J Extended directory search - cure by renaming tcmd.ini Support 10
S Trouble accessing results of forum search Support 2
J Fixed IDE search keys don't work in TCMD 13.01.32 Support 3
G Find files but ignore file extension in search Support 2
J Initialise; Alias; Extended directory search Support 2
Frank is the search-function in VIEW working? Support 2
deleyd How does TCC search for a command? Support 2
J Extended directory search - spaces in names Support 5
J How does tcc search for perl*.dll Support 1
fpefpe @search[] function Support 3
old coot DO statement reversed sort order seems not to work Support 11
Dick Johnson How to force TCC to count in proper numerical order Support 6
Steve Pitts REXX support - order of selection Support 2
fpefpe command order Support 2
C order popup windows as /o:gen ? Support 1
rps Documentation "Select" command switch order incorrect Support 4
H touch sensitive to order of options Support 2
vefatica Order of evaluation? Support 3
D Copy /n option order Support 5
A Rename Files in Chronological Order? Support 5
D Changed order of folder names in @file Support 4
S Startup/Shutdown order of events for TCC Support 6
nikbackm Order of DIR options and file names Support 3

Similar threads