Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • cmucl cmucl
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 57
    • Issues 57
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cmucl
  • cmuclcmucl
  • Issues
  • #16
Closed
Open
Issue created Dec 31, 2015 by Raymond Toy@rtoyOwner

pathname-match-p doesn't handle search lists

Assuming /tmp/ exists, then

(setf (search-list "tmp:") '("/tmp/"))
(pathname-match-p "/tmp/foo.lisp" "tmp:*.lisp")

signals an error that the search-list is the wrong type.

http://www.lispworks.com/documentation/lw61/CLHS/Body/f_pn_mat.htm says pathname-match-p has implementation-dependent matching, but it should be consistent with directory.

I think this means that if the search-list has multiple entries, we need to search each entry for a match because directory returns a list of all files in each entry of a search-list.

This issue affects asdf. If the $HOME/.cache/ directory doesn't exist, then asdf eventually tries to match some file in the cache directory against a path merged against (user-homedir-pathname) which returns #P"home:".

Assignee
Assign to
Time tracking