[Openmcl-devel] question regarding pathname-match-p
ron at flownet.com
Fri Jul 13 07:47:16 PDT 2018
This is super-simple to fix. Just meta-point on ccl::%pathname-match-directory and then change:
at the end to
On Jul 13, 2018, at 2:43 AM, lsxvdqe <lsxvdqe at gmail.com> wrote:
> Disclaimer: I'm not a CCL dev.
> On Thu, 12 Jul 2018, Ralf Stoye wrote:
>> pathname-match-p behaves different on ccl than on scbl.
>> -> nil
> This looks like a bug to me. The standard says that missing components
> should be treated as wildcards. And %COMPONENT-MATCH-P does exactly that.
> But directory component is matched differently.
> This should be equivalent (but isn't for CCL):
> (pathname-match-p "/foo/bar" (make-pathname :name "bar"))
> (pathname-match-p "/foo/bar" (make-pathname :directory :wild :name "bar"))
> This whole wildcard buisness is a bit hairy, as some parts depend on OS and FS.
> E.g ECL doesn't treat empty type as a wildcard (unlike most implementations).
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
More information about the Openmcl-devel