|
From: | Lennart Borgman |
Subject: | Re: Lisp code to expand /~ and // but not env vars? |
Date: | Mon, 03 Oct 2005 18:34:27 +0200 |
User-agent: | Mozilla Thunderbird 1.0.7 (Windows/20050923) |
Peter Dyballa wrote:
Function `expand-file-name' does not replace "//" and "/~" as `substitute-in-file-name' does.// is in UNIX nonsense. The root is / and does not get more root when written as '//' -- this only has in ancient (Apollo) Domain OS a meaning (Domain OS could create ad-hoc networks and // was the root of the individual members in the network). '//' is created as a text in mini-buffer when you either try to find a file or try to dired. The right means to handle such strings would be to substitute everything from the beginning to // with /.
Sorry, but no! This is legal in a path like //host/path/path/file.ext on MS Windows.
[Prev in Thread] | Current Thread | [Next in Thread] |