Among all the various wrinkles in interpretation and implementation
choices around pathnames, all the Unix-based Common Lisp's I've tested
seem to agree that:
(pathname-directory "/tmp/foo/bar") ==> (:ABSOLUTE "tmp" "foo")
(pathname-directory "/tmp/foo/bar/") ==> (:ABSOLUTE "tmp" "foo" "bar")
I.e. the trailing '/' on the namestring controls whether the last
element goes into the directory component of the pathname.
However I have not tested every implementation. Does anyone know of a
Unix-based implementation where that is *not* true?
Peter Seibel XXXX@XXXXX.COM
Lisp is the red pill. -- John Fraser, comp.lang.lisp
13. Form TMP