🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98502

Re: In dired it is difficult to deal with files that start with a #

#98502
From: Sebastian Kremer
Date: Thu, 27 Jun 1991 18:22
32 lines
1582 bytes
>>> In article <DANJ1.91Jun25125334@ihburn.ATT.COM>,
>>> Dan_Jacobson@att.com writes:

Dan> Which reminds me about another thing: In dired it is difficult
Dan> sometimes to deal with files that start with a #.

Dan> e.g.,
Dan> (dired "~/.mail/#pos*")
Dan> gets the whole directory, not just the files that start with #pos.
Dan> Anyway, this is all probably explainable due to doing a sh -c "ls ...."
Dan> so no big deal.

Try backslashing the #, this works for me:

    (dired "~/.mail/\\#pos*")

[Note that interactively you enter only one backslash, but I need two
of them to represent one in a literal elisp string.] 

Compare this to

	$ cd; cd .mail; sh -c 'ls #*'

vs.

	$ cd; cd .mail; sh -c 'ls \#*'

-Sebastian
--

Sebastian Kremer <sk@thp.Uni-Koeln.DE>
Institute of Theoretical Physics, University of Cologne, F. R. of Germany
Technical Details
Message-ID: <SK.91Jun27142204@sun7.thp.uni-koeln.de>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!thp.uni-koeln.DE!sk
References: sk@thp.uni-koeln.DE (Sebastian Kremer)

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,3d99733c5999ff16
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-06-27 11:22:04 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!thp.uni-koeln.DE!sk
From: sk@thp.uni-koeln.DE (Sebastian Kremer)
Newsgroups: gnu.emacs.bug
Subject: Re: In dired it is difficult to deal with files that start with a #
Message-ID: <SK.91Jun27142204@sun7.thp.uni-koeln.de>
Date: 27 Jun 91 18:22:04 GMT
References: sk@thp.uni-koeln.DE (Sebastian Kremer)
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: Institute of Theoretical Physics, University of Cologne, F. R.
 Germany
Lines: 32
Approved: bug-gnu-emacs@prep.ai.mit.edu