<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto">In SBCL and Allegro, it's possible for UIOP to create a pathname for a file whose name is "*" and then we can find a file with such a(n odd) pathname.</p>
<p dir="auto">On ABCL, though, this gives me an error:</p>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; background-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; max-width: 90vw;"><code style="margin: 0 0; border-radius: 3px; background-color: #F7F7F7; padding: 0px;">(truename (ensure-pathname "*"))
</code></pre>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; background-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; max-width: 90vw;"><code style="margin: 0 0; border-radius: 3px; background-color: #F7F7F7; padding: 0px;">(truename (uiop:ensure-pathname "*"))
#<THREAD "interpreter" native {21C91F12}>: Debugger invoked on condition of type FILE-ERROR
Cannot find the TRUENAME for a wild pathname.
</code></pre>
<p dir="auto">But actually, I don't think this <em>is</em> a wild pathname:</p>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; background-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; max-width: 90vw;"><code style="margin: 0 0; border-radius: 3px; background-color: #F7F7F7; padding: 0px;">CL-USER(4): (describe (uiop:ensure-pathname "*"))
#P"*" is an object of type PATHNAME:
HOST NIL
DEVICE NIL
DIRECTORY NIL
NAME "*"
TYPE :UNSPECIFIC
VERSION NIL
</code></pre>
<p dir="auto"><em>this</em> is a wild pathname:</p>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; background-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; max-width: 90vw;"><code style="margin: 0 0; border-radius: 3px; background-color: #F7F7F7; padding: 0px;">CL-USER(5): (describe (parse-namestring "*"))
#P"*" is an object of type PATHNAME:
HOST NIL
DEVICE NIL
DIRECTORY NIL
NAME :WILD
TYPE NIL
VERSION NIL
</code></pre>
<p dir="auto">Is this an ABCL bug, since it means ABCL cannot address a file whose name is "*"?</p>
<p dir="auto">The interested may refer to <a href="https://gitlab.common-lisp.net/asdf/asdf/-/issues/140" style="color: #3983C4;">this ASDF issue</a> and the corresponding merge request.</p>
<p dir="auto">Thanks!</p>
</div>
</div>
</body>
</html>