logo       
Bookmark and Share

Re: Using filenames which contain wildcard characters: msg#00101

lisp.clisp.general

Subject: Re: Using filenames which contain wildcard characters

> * In message <878yumbqwm.fsf@xxxxxxxxxxxxxxx>
> * On the subject of "[clisp-list] Using filenames which contain wildcard
> characters"
> * Sent on Mon, 07 Apr 2003 19:25:29 +1000
> * Honorable Mark Triggs <mst@xxxxxxxxxxxxxxx> writes:
>
> I've hit a bit of a stumbling block with some code I'm working on. I
> have a file called "hello?.txt" (unix filesystem) that I'm trying to
> open using (with-open-file ..), but I'm getting the following:
>
> [1]> (with-open-file (test "hello?" :direction :input))
> *** - wildcards are not allowed here: #P"hello?"

CLHS is quite explicit on OPEN:

An error of type file-error is signaled if (wild-pathname-p filespec)
returns true.

It is possible to add an keyword option to OPEN to circumvent it, but
it will not be portable.
Maybe it would be better to avoid such pathnames?

--
Sam Steingold (http://www.podval.org/~sds) running RedHat8 GNU/Linux
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html>
Bus error -- driver executed.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise