Sam Steingold writes: > > * Thomas F. Burdick <[EMAIL PROTECTED]> [2004-05-09 14:23:22 -0700]: > > > > Sam Steingold writes: > > > > > > why doesn't (make-pathname :name "foo-*") return a wild pathname? > > > it returns #p"foo-\\*" which is not wild. > > > how do I avoid this quoting? > > > > Within ANSI CL, you can't. The standard doesn't include any way to do > > Unix-style wildcarding. You can use CMUCL's namestring parser, > > though, which is implementation-specific. > > Both LWW and CLISP return #P"foo-*" - why did CMUCL decide to quote the *?
I can't tell what #P"foo-*" is. I'd certainly hope its name is *not* a wildcard. Ie, (pathname-name (make-pathname :name "foo-*")) => "foo-*" "/local/stars/foo-*" is a perfectly valid name for a Unix file, and (make-pathname :directory '(:absolute "local" "stars") :name "foo-*") should name it, not a pattern. (pathname "/local/stars/foo-*") can name anything the implementation wants.
