Re: pathname with tilde and wildcard characters

Marco Antoniotti <[email protected]>
Newsgroups gmane.lisp.steel-bank.general
Message-ID <CAG0Nw2kx=8QCaN4yKtczR3dx6+mdkArscxtbHMH+cwCEkWXE-g@mail.gmail.com>
Hi

it looks like you are trying "shell wildcards" in pathnames.  They do not
work in Common Lisp.  You can only have '*' and '**' in "wild pathnames" in
Common Lisp.

Cheers

MA


On Wed, Jun 5, 2024 at 11:25 PM Peter Münster <[email protected]> wrote:

> Hi,
>
> What would be the best method, to open a file with "~/" (for the home
> directory) and wildcard characters in its name please?
>
> I’ve tried (open "~/tmp/test-??-file") and
> (open (parse-native-namestring "~/tmp/test-??-file")), but both result
> in errors.
>
> Of course, I could parse the string and translate "~/" or the wildcard
> characters. But I would like to know, if there is already a better
> solution in SBCL.
>
> TIA for any help,
> --
>            Peter
>
>
>
> _______________________________________________
> Sbcl-help mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sbcl-help
>


-- 
Marco Antoniotti, Professor                   tel. +39 - 02 64 48 79 01
DISCo, University of Milan-Bicocca U14 2043   http://dcb.disco.unimib.it
Viale Sarca 336
I-20126 Milan (MI) ITALY

_______________________________________________
Sbcl-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sbcl-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.