scsh-users
[Top] [All Lists]

Rationale for (file-name-as-directory "") => "/"?

To: sperber@informatik.uni-tuebingen.de
Subject: Rationale for (file-name-as-directory "") => "/"?
From: Noah Friedman <friedman@splode.com>
Date: Tue, 14 Apr 1998 02:14:11 -0700 (PDT)
Cc: scsh@martigny.ai.mit.edu
Cc: bug-gnu-emacs@prep.ai.mit.edu
Reply-to: Noah Friedman <friedman@splode.com>
>Subject says all.  I know Emacs behaves that way, but the XEmacs
>developers are wondering just the same.
>
>It seems "./" would be a more reasonable choice, no?  (I would
>personally have it raise an error, but that's just me ...)

Unix file name semantics being what they are, and since
file-name-as-directory interprets other arguments relative to the current
working directory, I think "./" is probably the correct thing for it to do.

<Prev in Thread] Current Thread [Next in Thread>