Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!spool2.mu.edu!uunet!mcsun!hp4nl!sci.kun.nl!cs.kun.nl!rhialto From: rhialto@cs.kun.nl (Olaf 'Rhialto' Seibert) Newsgroups: comp.sys.amiga.programmer Subject: Re: WANTED: ""/filename == ./filename Message-ID: <2701@wn1.sci.kun.nl> Date: 29 Jan 91 17:07:45 GMT References: Sender: root@sci.kun.nl Distribution: comp Organization: University of Nijmegen, The Netherlands Lines: 30 In article vinsci@nic.funet.fi (Leonard Norrgard) writes: >As you might have observed, the Amiga notation for the current >directory, "", doesn't denote the current directory anymore if you >append a filename. Strange and weird. I want ""/filename to match >./filename on unix systems. I'll go for any hack adding this. >Looks like a thing that could be useful in sksh as well... > Anybody have a solution? I am afraid that there is no real solution without introducing some new name that is equivalent to "". This is because the name of the current directory is not ``quote-quote'', but ``'', the empty name. So if you append ``/filename'' to the empty string, the result is again ``/filename''. Note, by the way, that even in Unix the empty name (implicitly) indicates the current directory, since the name ``.'' which is normally used for that purpose is usually just a normal directory entry like any other. A possible hack would be some handler which intercepts all DOS packets sent to file systems, interprets all path names in them, rewriting them into standard notation, and passing them on to the original filesystem. (The simplest rewrite of a Lock-path pair would be into a Lock on the intended file or directory and the empty path.) This can certainly be done, if you take care of all the details which I forgot ;-) >-- Leonard -- -- Olaf 'Rhialto' Seibert rhialto@cs.kun.nl How can you be so stupid if you're identical to me? -Robert Silverberg