Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!leah!wfh58 From: wfh58@leah.Albany.Edu (William F. Hammond) Newsgroups: comp.sys.amiga Subject: Command path question posted as 'Re: CDTV disk' Summary: CLI's run from WorkBench do inherit a path Message-ID: <3539@leah.Albany.Edu> Date: 16 Aug 90 16:30:12 GMT References: <11067@wehi.dn.mu.oz> <33cmN4w162w@valnet> <4562@jato.Jpl.Nasa.Gov> Reply-To: wfh58@leah.albany.edu.UUCP (William F. Hammond) Organization: Dept of Math & Stat, SUNYA, Albany, NY Lines: 35 In article <4562@jato.Jpl.Nasa.Gov> is asked: > > The CLI/New Shell environment supports a search path that can be >altered via the 'Path' command. Is there such a way to get Workbench to >follow a similiar convention? > I don't understand just what it is you want to know. The command path applies only to the use of commands like "dir", "cd", and (good old) "ed" entered in a shell or CLI. Most of the time when a program is run from WorkBench by double-clicking on an icon, that program will not be using such commands. If it wants to use system libraries, it will access them directly without going through commands. (After all, the programmer has no way of knowing what commands will be available in the user's set-up.) Perhaps you are concerned about the default path in a shell or CLI that is started from WorkBench. Absent "path" instructions in "s:CLI-Startup" or "s:Shell-Startup", the path will be the path in force in the CLI from which WorkBench was loaded, i.e., in which the command "loadwb" was run. For example, if "loadwb" is run by your "s:Startup-Sequence" script, then you can create a default command path for CLI's and reasonably standard shells launched from WorkBench by inserting appropriate "path" instructions in your startup script before the "loadwb" command. (Most CLI's and shells launched with "hot keys" also will by default inherit the path in force at the time the "hot key" program is started if it is started in a CLI or shell.) Any such default path may be wiped out by a "path reset" (for example, in your scripts "s:CLI-Startup" or "s:Shell-Startup"). ---------------------------------------------------------------------- William F. Hammond Dept. of Mathematics & Statistics 518-442-4625 SUNYA, Albany, NY 12222 hammond@leah.albany.edu wfh58@albnyvms.bitnet ----------------------------------------------------------------------