Re: parse-namestring and logical pathnames



Madhu <enometh@xxxxxxxx> writes:

Aside: This sort of concatenating physical pathnames as strings is
implementation specific. To be portable you have to use.

(let* ((to-wildcard-base
(merge-pathnames
(make-pathname :host nil :name :wild :type nil :version nil
:directory '(:relative :wild-inferiors))
(user-homedir-pathname) nil))
(to-wildcard-with-ext
(merge-pathnames
(make-pathname :host nil :name :wild :type :wild :version :wild
:directory '(:relative :wild-inferiors))
(user-homedir-pathname) nil)))

Thanks. I replaced my earlier version with this one. It helps to clarify
what all the asterisks actually stand for in the strings. I've had a
hard time finding documentation for the syntax.

--
Steven E. Harris
.



Relevant Pages