Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!unido!fauern!faui44!mlelstv From: mlelstv@faui44.informatik.uni-erlangen.de (Michael van Elst ) Newsgroups: comp.sys.amiga Subject: Re: Enviroment (was Re: Yea, but can an Amiga Shell do this....) Message-ID: <614@faui44.informatik.uni-erlangen.de> Date: 29 Aug 88 09:11:38 GMT References: <8808232121.AA28517@cory.Berkeley.EDU> Reply-To: mlelstv@faui44.UUCP (Michael van Elst) Organization: CSD., University of Erlangen, W - Germany Lines: 25 In article <8808232121.AA28517@cory.Berkeley.EDU> dillon@CORY.BERKELEY.EDU (Matt Dillon) writes: >:Amigados has a clear inferiority in that it cannot refer to current >:directory which Unix does with ".". So why was AmigaDos done this >:way? Well, just because... > Hello Matt, I know that there is no current directory symbol in AmigaDOS BUT in many cases an empty pathname, i.e "", works like current_directory. You can test this with the COPY command, just COPY filename "" will copy 'filename' into your current directory. In your programs you can get a lock to the current directory by using yourprocess->pr_CurrentDir; or currentdir = CurrentDir(NULL); CurrentDir(currentdir); or currentdir = Lock(""); !!!!!!!!!!!!!(don't forget to UnLock :-) Michael van Elst E-mail: UUCP: ...seismo!unido!fauern!faui44!mlelstv E-mail: UUCP: ...uunet!unido!fauern!faui44!mlelstv <- when seismo ceases operation