Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

** not permitted as a pathname :name #1594

Open
fosskers opened this issue Jun 17, 2024 · 0 comments
Open

** not permitted as a pathname :name #1594

fosskers opened this issue Jun 17, 2024 · 0 comments
Labels

Comments

@fosskers
Copy link

fosskers commented Jun 17, 2024

Describe the bug

Paths like #p"/foo/bar/**.json" bring up the debugger, citing:

:WILD-INFERIORS is not a valid pathname-:NAME component

which is technically spec conformant according to: https://cl-community-spec.github.io/pages/Restrictions-on-Examining-a-Pathname-Name-Component.html

However, as a matter of interacting with modern OSs:

  • sbcl stores ** as sb-impl::pattern<...>.
  • abcl and ccl store ** as a string, as-is.

Could Clasp be extended to support ** in :name position?

Expected behavior
** is handled in a way that doesn't throw a condition.

Actual behavior
(as shown above)

Note also that this means #p"**", semantically "all files", cannot currently be constructed.

Code at issue
Is this function perhaps relevant?

Context

  • Clasp: 2.6.0
  • OS: Linux
@fosskers fosskers added the bug label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant