armedbear / abcl

Armed Bear Common Lisp <git+https://github.com/armedbear/abcl/> <--> <svn+https://abcl.org/svn> Bridge
https://abcl.org#rdfs:seeAlso<https://gitlab.common-lisp.net/abcl/abcl>
Other
288 stars 29 forks source link

parse-namestring ignores current directory spec #656

Open mmontone opened 7 months ago

mmontone commented 7 months ago

(parse-namestring "./foo") evaluates to #p"foo", instead of #p"./foo".

Most Lisp implementation evaluate to #p"./foo", but I don't think this is in the standard.

ABCL supports current directory in paths though, using make-pathname:

(make-pathname :directory '(:relative ".") :name "foo") => #P"./foo".

So it is only parse-namestring that would need to be modified.

easye commented 5 months ago

Verified that other open implementations (sbcl, ecl, ccl) have this behavior.

Added test for subsequent patches of PARSE-NAMESTRING.