Newsgroups: comp.sys.atari.st Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!mintaka!pogo.gnu.ai.mit.edu!entropy From: entropy@gnu.ai.mit.edu (maximum entropy) Subject: Re: Gemini Standard Usages In-Reply-To: jimomura@lsuc.on.ca's message of Fri, 31 May 1991 18:43:17 GMT Message-ID: Sender: news@mintaka.lcs.mit.edu Organization: Not Proud Programmers References: <1991May31.184317.26514@lsuc.on.ca> Date: 1 Jun 91 09:04:34 Lines: 27 In article <1991May31.184317.26514@lsuc.on.ca> jimomura@lsuc.on.ca (Jim Omura) writes: >Also, I have no idea what they are intending to use the "CDPATH" >for. I've never seen it on a Unix system or an OS-9 system and >I don't know what program would look for it. Is that supposed to >be a path for CD Rom applications? I don't use Gemini, but I do know what CDPATH is, from using ksh and bash. The CDPATH variable contains a list of directories to scan for a directory name given to the 'cd' command. For example, if my CDPATH is ":/usr:/usr/entropy:/usr/bob/pub/bin/bsd4.3/recreation" then if I type "cd games" the shell will: 1) cd to ./games if it exists (some shells don't do this if you have a CDPATH) 2) otherwise, cd to /usr/games if it exists 3) otherwise, cd to /usr/entropy/games if it exists 4) otherwise, cd to /usr/bob/pub/bin/bsd4.3/recreation/games if it exists CDPATH is very useful if you have long paths to very common storage areas and don't like typing them all the time. entropy -- entropy@gnu.ai.mit.edu entropy. . .it's not just a good idea, it's the second law. Boycott Lotus, Apple, Ashton-Tate and Xerox. Join the League for Programming Freedom! Write to league@prep.ai.mit.edu for more information.