Unix pathnames with directory starting in :ABSOLUTE followed by a symbol don't unparse.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
High
|
Unassigned |
Bug Description
Unix pathnames whose directories start with :ABSOLUTE followed by one of symbols :WILD, :WILD-INFERIORS, or :UP no longer have a namestring syntax, despite being valid products of PARSE-NAMESTRING:
--
$ sh ./run-sbcl.sh --no-userinit --no-sysinit
(running SBCL from: .)
This is SBCL 1.3.2.69-aff4a0f, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* (make-pathname :directory '(:absolute :wild-inferiors))
#<PATHNAME (with no namestring)
:HOST #<SB-IMPL:
:DEVICE NIL
:NAME NIL
:TYPE NIL
:VERSION NIL>
* (make-pathname :directory '(:absolute :wild))
#<PATHNAME (with no namestring)
:HOST #<SB-IMPL:
:DEVICE NIL
:NAME NIL
:TYPE NIL
:VERSION NIL>
* (make-pathname :directory '(:absolute :up))
#<PATHNAME (with no namestring)
:HOST #<SB-IMPL:
:DEVICE NIL
:NAME NIL
:TYPE NIL
:VERSION NIL>
* (pathname "/**/")
#<PATHNAME (with no namestring)
:HOST #<SB-IMPL:
:DEVICE NIL
:NAME NIL
:TYPE NIL
:VERSION NIL>
* (pathname "/*/")
#<PATHNAME (with no namestring)
:HOST #<SB-IMPL:
:DEVICE NIL
:NAME NIL
:TYPE NIL
:VERSION NIL>
* (pathname "/../")
#<PATHNAME (with no namestring)
:HOST #<SB-IMPL:
:DEVICE NIL
:NAME NIL
:TYPE NIL
:VERSION NIL>
--
The attached patch rectifies, I believe.
(Aside: 19.2.2.4.3 requires :ABSOLUTE :UP to signal a FILE-ERROR, but since that is a valid thing to have on Unix, please continue not conforming to ANSI on this detail.)
Other requested info:
--
$ uname -a
Darwin m5.localdomain 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-
* *features*
(:64-BIT :64-BIT-REGISTERS :ALIEN-CALLBACKS :ANSI-CL :ASH-RIGHT-VOPS :BSD
:C-STACK-
:COMPLEX-
:FP-AND-
:INODE64 :INTEGER-EQL-VOP :INTERLEAVED-
:MACH-
:OS-PROVIDES-
:OS-PROVIDES-PUTWC :OS-PROVIDES-
:PRECISE-
:SB-PACKAGE-LOCKS :SB-SIMD-PACK :SB-SOURCE-
:SBCL :STACK-
:STACK-
:STACK-
:UNWIND-
--
Changed in sbcl: | |
assignee: | nobody → Jan Moringen (scymtym) |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in sbcl: | |
assignee: | Jan Moringen (scymtym) → nobody |
status: | Confirmed → Fix Committed |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |