Re: pathname with tilde and wildcard characters

Stas Boukarev <[email protected]>
Newsgroups gmane.lisp.steel-bank.general
Message-ID <CAF63=12QgBQzH0zLpmtzgwsNVRBjs67hOFjxLnSuaXWGuY5aXg@mail.gmail.com>
I don't think enough-namestring does anything for you that NAMESTRING
doesn't.
(namestring (parse-native-namestring "~/foo??.lisp"))
=>
"~/foo\\?\\?.lisp"

So it escapes the wildcards but doesn't escape ~. That might actually be a
bug in sbcl.

On Thu, Jun 6, 2024 at 9:08 AM Peter Münster <[email protected]> wrote:

> On Thu, Jun 06 2024, Peter Münster wrote:
>
> > I just have to choose! ;)
>
> Ah, perhaps not! I’ve just discovered "enough-namestring":
>
> (enough-namestring (parse-native-namestring my-file-name))
>
> This seems to work. What do you think, is this robust?
>
> --
>            Peter
>
>
>
> _______________________________________________
> Sbcl-help mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sbcl-help
>

_______________________________________________
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.