Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!ox.com!math.fu-berlin.de!unido!horga!nathan!ue From: ue@nathan.ruhr.de (Udo Erdelhoff) Newsgroups: comp.sys.atari.st Subject: Re: Gemini Standard Usages Message-ID: <4472854@nathan.ruhr.de> Date: 3 Jun 91 16:14:40 GMT References: <1991May31.184317.26514@lsuc.on.ca> <1991Jun1.214409.18541@lsuc.on.ca> Distribution: comp Organization: Cyberspace Lines: 40 X-Version: Rodney's UUCP modules 02/11/90 V1.18 In article <1991Jun1.214409.18541@lsuc.on.ca> jimomura@lsuc.on.ca (Jim Omura) writes: > > This point has become sort of interesting. If you read > exactly what I said, it was a sort of a trick comment. Truth > is, I was being sarcastic. I did realize that they were using > it to define a search path for an empty 'cd' call. Truth is, Sorry, but that's wrong. CDPATH defines a list(!) of directories where Gemini should search for the directory given as argument in the cd command. It's something similar to the PATH variable, which gives a list of directories where Gemini should search for the given command. I'll show you an example, perhaps you'll understand it more easily: Imagine you have a folder structure like this: c:\btx\ c:\btx\macros\texts\ c:\btx\macros\grphics\ c:\btx\pages\german\ c:\btx\pages\englisch\ c:\fido\ c:\fido\out\ c:\fido\in\ Now suppose you are currently working in d:\fido\out and want to change into c:\btx\macros\texts\ to examine a text. Normally, you'd have to type in the full path in order to get there. If you are using CDPATH, you can set: setenv CDPATH='.,c:\,c:\btx\,c:\btx\macros\,c:\btx\pages\,c:\fido\,d:\' etc. Now all you've got to type is "cd texts" and gemini will cd to c:\btx\macros\texts. Got it? This is very powerful tool, you'll save a lot of work, especially if you would normally be forced to use long paths... The list in searched from left to right, so it's a good idea to put the '.' in first place. Thereby Gemini will search in the current directory first. /s/ PS: Are You using the english or the german version of Gemini? Take a look at mupfel.doc, they explained the reason for CDPATH quite good. -- Udo Erdelhoff smart: ue@nathan.ruhr.de Am Westheck 170 Fido: Udo Erdelhoff on 2:245/52.1 W-4600 Dortmund 12 (FRG) Maus: Udo Erdelhoff @ DO Please keep your replies short - I have to pay for recieving mail