logo       

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

lisp.clisp.general

Subject: Re: Using filenames which contain wildcard characters

Pascal Bourguignon <pjb@xxxxxxxxxxxxxxxxx> writes:

> Sam Steingold writes:

[...]

>> 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?

Absolutely, but unfortunately I'm at the mercy of whatever bogus names
people have decided to give their files :o)

> Or to use a unix API (linux package in clisp). See the current POSIX
> thread on comp.lang.lisp...

Thanks for the suggestions. Given that the hyperspec makes it clear that
an error should be signalled (sorry to have missed that), the behaviour
is understandable. The linux package should do the trick for my purposes
anyway.

Thanks again,

Mark

--
Mark Triggs
<mst@xxxxxxxxxxxxxxx>


-------------------------------------------------------
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 | FAQ | advertise