From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Dired and wildcards Date: Tue, 19 Jun 2007 11:17:16 -0400 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1182266253 7031 80.91.229.12 (19 Jun 2007 15:17:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2007 15:17:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 19 17:17:23 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I0fSN-00083F-3J for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2007 17:17:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0fSM-00056d-J8 for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2007 11:17:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0fSI-00056Y-JL for emacs-devel@gnu.org; Tue, 19 Jun 2007 11:17:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0fSG-00056M-RF for emacs-devel@gnu.org; Tue, 19 Jun 2007 11:17:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0fSG-00056J-Mt for emacs-devel@gnu.org; Tue, 19 Jun 2007 11:17:16 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I0fSG-0008FE-Ey for emacs-devel@gnu.org; Tue, 19 Jun 2007 11:17:16 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1I0fSG-0004BM-4I; Tue, 19 Jun 2007 11:17:16 -0400 In-reply-to: (message from Andreas Schwab on Tue, 19 Jun 2007 10:40:10 +0200) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:73312 Archived-At: > From: Andreas Schwab > Cc: emacs-devel@gnu.org > Date: Tue, 19 Jun 2007 10:40:10 +0200 > > Eli Zaretskii 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?