Skip to content

** not permitted as a pathname :name #1594

Open
@fosskers

Description

@fosskers

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions