emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dired and wildcards


From: Eli Zaretskii
Subject: Re: Dired and wildcards
Date: Tue, 19 Jun 2007 11:17:16 -0400

> From: Andreas Schwab <address@hidden>
> Cc: address@hidden
> Date: Tue, 19 Jun 2007 10:40:10 +0200
> 
> Eli Zaretskii <address@hidden> writes:
> 
> > But from Emacs on GNU/Linux, "C-x d foo[bar] RET" _always_ shows the
> > contents of the directory foo[bar].  Is there any way to tell Dired
> > that the argument is a wildcard, not a literal file name?  What am I
> > missing?
> 
> I'm not sure I understand your question.  In which way is this different
> from the situation in the shell?

At the shell prompt, if there are files that match the shell wildcard
"foo[bar]" (e.g., fooa and foob), `ls' will show them, even though I
have a _subdirectory_ foo[bar] in the sane directory; but in Emacs, I
always get the directory foo[bar], never the files fooa and foob.

Here's a precise recipe:

Outside Emacs: $ mkdir "foo[bar]"; touch "foo[bar]"/{foo,bar}; touch foo{a,b}
Inside Emacs: C-x d foo[bar] RET

Interestingly enough, "C-x d foo*" shows the files fooa and foob.  Why
"foo*" is interpreted by Dired as a wildcard, while "foo[bar]" is not?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]