From: Jens Teich
Subject: merge-pathnames omits subfolders
Date: 
Message-ID: <ups2goi8f.fsf@jensteich.de>
(merge-pathnames #p"/home/jens/" #p"paintings/madonnawiththebigboobies.jpg")
=> #P"/home/jens/madonnawiththebigboobies.jpg"

where is the subfolder 'paintings' gone?

Jens

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

From: Ralf Mattes
Subject: Re: merge-pathnames omits subfolders
Date: 
Message-ID: <f87bp0$ov4$1@news01.versatel.de>
On Wed, 25 Jul 2007 13:06:24 +0200, Jens Teich wrote:

> (merge-pathnames #p"/home/jens/" #p"paintings/madonnawiththebigboobies.jpg")
> => #P"/home/jens/madonnawiththebigboobies.jpg"
> 
> where is the subfolder 'paintings' gone?

Hmm-might it be possible that you accidentally mixed up the order of your
arguments? The signature is '(merge-pathname pname defaults)'. The
documentation says: "Construct a filled in pathname by completing the
unspecified components from the defaults."
In your example the only things unspecified are filename, type and version
- and these did get merged in. Maybe you want: 

(merge-pathnames
#p"paintings/madonnawiththebigboobies.jpg" #p"/home/jens/")
 =>#P"/home/jens/paintings/madonnawiththebigboobies.jpg"

 HTH Ralf Mattes



> Jens
>
From: Jens Teich
Subject: Re: merge-pathnames omits subfolders
Date: 
Message-ID: <uhcnsofvk.fsf@jensteich.de>
Ralf Mattes <··@mh-freiburg.de> writes:

> (merge-pathnames
> #p"paintings/madonnawiththebigboobies.jpg" #p"/home/jens/")
>  =>#P"/home/jens/paintings/madonnawiththebigboobies.jpg"

That's exactly what I was looking for, thanks!

Jens
From: Ralf Mattes
Subject: Re: merge-pathnames omits subfolders
Date: 
Message-ID: <f87m1s$rjg$1@news01.versatel.de>
On Wed, 25 Jul 2007 13:57:19 +0200, Jens Teich wrote:

> Ralf Mattes <··@mh-freiburg.de> writes:
> 
>> (merge-pathnames
>> #p"paintings/madonnawiththebigboobies.jpg" #p"/home/jens/")
>>  =>#P"/home/jens/paintings/madonnawiththebigboobies.jpg"
> 
> That's exactly what I was looking for, thanks!

Oh - and I thought you were looking for Madonna's ...

 Cheers, RalfD

> 
> Jens