Re: user-homedir-pathname not amenable to merging.

Gary Byers <[email protected]> Sat, 8 Feb 2003 20:17:41 -0700 (MST)
Newsgroups gmane.lisp.openmcl.bugs
Message-ID <[email protected]>
The fix is in CVS, and I don't think that anything broke in the process.
The function that was setting name/and type to :UNSPECIFIED is called
by a few other functions (including ENSURE-DIRECTORIES-EXIST), so the
results in those cases would have had the same difficulies with
subsequent attempts to involve them in  MERGE-PATHNAMES calls.

On Sat, 8 Feb 2003, bryan o'connor wrote:

> a reminder for gary from our chat on #lisp --
>
> (user-homedir-pathname) and #P"/Users/bryan/" differ by
> %PATHNAME-NAME and %PATHNAME-TYPE being set to :UNSPECIFIED
> in the former, NIL in the latter.
>
> this seems to break (merge-pathnames ...).
>
> see transcript below.
>
> Welcome to OpenMCL Version (Beta: Darwin) 0.13.4!
> ? (user-homedir-pathname)
> #1P"/Users/bryan/"
> ? (merge-pathnames (user-homedir-pathname) #P"foo")
> #1P"/Users/bryan/"
> ? (merge-pathnames #P"/Users/bryan/" #P"foo")
> #P"/Users/bryan/foo"
> ? (describe (user-homedir-pathname))
> #1P"/Users/bryan/"
> Type: PATHNAME
> Class: #<BUILT-IN-CLASS PATHNAME>
> TYPE: PATHNAME
> %PATHNAME-DIRECTORY: (:ABSOLUTE "Users" "bryan")
> %PATHNAME-NAME: :UNSPECIFIC
> %PATHNAME-TYPE: :UNSPECIFIC
> ? (describe #P"/Users/bryan/")
> #P"/Users/bryan/"
> Type: PATHNAME
> Class: #<BUILT-IN-CLASS PATHNAME>
> TYPE: PATHNAME
> %PATHNAME-DIRECTORY: (:ABSOLUTE "Users" "bryan")
> %PATHNAME-NAME: NIL
> %PATHNAME-TYPE: NIL
> ? (quit)
>
>
> _______________________________________________
> bug-openmcl mailing list
> [email protected]
> http://clozure.com/cgi-bin/mailman/listinfo/bug-openmcl
>
>