From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Juanma Barranquero <lekktu@gmail.com>, emacs-devel@gnu.org
Subject: Re: Behavior of directory-files on Windows
Date: Thu, 01 Dec 2011 18:34:17 +0100 [thread overview]
Message-ID: <878vmw6vs6.fsf@gmail.com> (raw)
In-Reply-To: <83r50o439k.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 01 Dec 2011 19:20:55 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Juanma Barranquero <lekktu@gmail.com>
>> Date: Thu, 1 Dec 2011 15:39:41 +0100
>> Cc: emacs-devel@gnu.org
>>
>> On Thu, Dec 1, 2011 at 13:54, Thierry Volpiatto
>> <thierry.volpiatto@gmail.com> wrote:
>>
>> > If I do:
>> > (directory-files "c:/")
>> > The "c:/." and "c:/.." candidates are omitted
>>
>> Assuming C:/ is really the root of your Windows' installation drive,
>> it does not have the . and .. entries (try doing "dir /a:" in C:\ and
>> in a subdirectory). So they are not omitted, they just are not there.
>
> Right. DJGPP, the development environment used to build the DOS port
> of Emacs, actually _invents_ these two entries in the root of each
> drive, to avoid the unpleasant surprises like the one Thierry just
> hit.
So that would make sense to add these two entries to output of
`directory-files', after all, one is able to do:
(find-file "c:/.") but when he list directory this file ("c:/.") is not
present.
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
next prev parent reply other threads:[~2011-12-01 17:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-01 12:54 Behavior of directory-files on Windows Thierry Volpiatto
2011-12-01 14:39 ` Juanma Barranquero
2011-12-01 15:17 ` Thierry Volpiatto
2011-12-01 15:22 ` Juanma Barranquero
2011-12-01 15:37 ` Thierry Volpiatto
2011-12-01 15:43 ` Juanma Barranquero
2011-12-01 17:21 ` Eli Zaretskii
2011-12-01 17:36 ` Thierry Volpiatto
2011-12-01 17:20 ` Eli Zaretskii
2011-12-01 17:34 ` Thierry Volpiatto [this message]
2011-12-02 9:06 ` Eli Zaretskii
2011-12-02 10:46 ` Thierry Volpiatto
2011-12-02 15:03 ` Eli Zaretskii
2011-12-02 15:51 ` Thierry Volpiatto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878vmw6vs6.fsf@gmail.com \
--to=thierry.volpiatto@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).