Article View: gnu.emacs.help
Article #188872Re: Directory Files
From: Martin Neitzel
Date: Wed, 29 May 1991 13:37
Date: Wed, 29 May 1991 13:37
20 lines
1225 bytes
1225 bytes
>>>>>>> Anil Joshi writes: AJ> AJ> (directory-files default-directory nil "*.[ch]") AJ> and am getting back AJ> nil AJ> where as there are files that match the reg-exp. AJ> What am I doing wrong? There were already many followups giving a correct regexp. I just want to point out one minor point. The *.[ch] notation used in shells is called "filename globbing" and is _not_ regexp matching, as some of the followups said. Emacs' regexps are quite upward compatible with "unix regexps" (used in "grep", "sed" and many other tools). Just don't get the wrong impression that shells would use regexps for filename matching. Martin Neitzel
Technical Details
Message-ID:
<3593@infbs.UUCP>Path:
arc1-ca.pugleaf.net!gmdzi!unido!infbs!neitzel@infbs.uucpReferences:
<1991May21.213101.22515@m.cs.uiuc.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,47d8d87ddf6099a4 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-05-29 12:24:39 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!infbs!neitzel@infbs.uucp From: neitzel@infbs.uucp (Martin Neitzel) Newsgroups: gnu.emacs.help Subject: Re: Directory Files Keywords: directory-files, match-regexp Message-ID: <3593@infbs.UUCP> Date: 29 May 91 13:37:47 GMT References: <1991May21.213101.22515@m.cs.uiuc.edu> Sender: neitzel@infbs.UUCP Organization: TU Braunschweig, CS Dept., FRG Lines: 20