Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!ames!ucbcad!ucbvax!hoser.berkeley.edu!bryce From: bryce@hoser.berkeley.edu (Bryce Nesbitt) Newsgroups: comp.sys.amiga Subject: Re: How can I get to the command search path? Message-ID: <21790@ucbvax.BERKELEY.EDU> Date: Sat, 14-Nov-87 16:04:27 EST Article-I.D.: ucbvax.21790 Posted: Sat Nov 14 16:04:27 1987 Date-Received: Sun, 15-Nov-87 18:59:38 EST References: <1538@tut.cis.ohio-state.edu> Sender: usenet@ucbvax.BERKELEY.EDU Organization: University of California at Berkeley Lines: 28 In article <1538@tut.cis.ohio-state.edu> mills-c@pike.cis.ohio-state.edu (Chris Mills) writes: > >I'm trying to write a program which, among other things, will do command and >filename completion on the Amiga. What I need to know is how do I get at >the search path (given by the PATH command)? I need to be able to search >all the directories from the current dir down to C:. Here's a public wish that C= would provide the technical information in Amiga Mail in electronic form, perhaphs after a delay to give subscribers "first jump". Good technical information that *everyone* can have helps the machine. "The path list is held as a BPTR in the CommandDir member of the CommandLineInterface structure. Although currrently documented as the lock on the command directory, this is either zero or a BPTR to a list of path elements, each consisting of: BPTR NextPath (BPTR to next in list) BPTR PathLock (BPTR to a lock on the directory)" The lock on the currrent directory is *NOT* in the list, nor is the C: lock. I feel this is unfortunate, as there are real reasons for wanting to play with the order of those two as well. |\ /| . Ack! (NAK, SOH, EOT) {o O} . bryce@hoser.berkeley.EDU -or- ucbvax!hoser!bryce (") U