From: Vladimir V. Zolotych
Subject: confused with logical-pathames
Date: 
Message-ID: <3AB25D73.13048063@eurocom.od.ua>
	Hello

I've try the following

(setf (logical-pathname-translations "mailer")
      '(("**;*.*.*" "/home/vlz/cmucl/mailer/**/")))

(translate-logical-pathname "mailer:message0-5.text")
This gives what I've expected, e.g

#p"/home/vlz/cmucl/mailer/message0-5.text"

(let ((h (make-pathname :host "mailer" :type "text")))
  (let ((n (make-pathname :name "message0-5")))
    (translate-logical-pathname (merge-pathnames n h)))))

But this gives

#p"message0-5.TEXT"

What's wrong ? Shouldn't merge-pathname takes unsupplied
values from H ?

Another difficulty

(let ((h (make-pathname :host "mailer" :type "text")))
  (translate-logical-pathname (merge-pathnames "message0-5" h)))

This gives

#p"/home/vlz/cmucl/mailer/message0-5.TEXT"

Why TEXT is in upper case? I've tried :case with both :local,
:common, this takes no effect on result.

Would you mind say few words about syntax "**;*.*.*"
I've read HS, but more simplified explanations 
(even Unix specific) would be welcome.

	Best regards

-- 
Vladimir Zolotych                         ······@eurocom.od.ua
From: Lieven Marchand
Subject: Re: confused with logical-pathames
Date: 
Message-ID: <m3ofv1jt2t.fsf@localhost.localdomain>
"Vladimir V. Zolotych" <······@eurocom.od.ua> writes:

[examples snipped]

For what it's worth, I agree with your expectations and so does
LispWorks.

> Would you mind say few words about syntax "**;*.*.*"
> I've read HS, but more simplified explanations 
> (even Unix specific) would be welcome.
> 

** stands for any number of directory components in the path, so it
** matches /, /usr, /usr/local, ...

*.*.* defines the leaf and means an arbitrary name, followed by an
arbitrary type, followed by an arbitrary version. Under Unix, version
is not relevant and type will probably be taken to be the suffix after
the last "." if any.

-- 
Lieven Marchand <···@wyrd.be>
Gla�r ok reifr skyli gumna hverr, unz sinn b��r bana.