At 4:48 PM +0200 4/15/09, Peter Ulrich Kruppa wrote:
>> unix naming convention normally dictates the following:
>> cp -r /cdrom/dir /mnt/
>> # will create /mnt/dir and everything under it
>> cp -r /cdrom/dir/ /mnt/
>> # will copy contents of dir into /mnt
>That was what I thought it should do - but it doesn't!

I'm pretty certain "cp" doesn't care about the trailing slash
and hasn't. OTOH, you could use "rsync" which does change its
behavior depending on the trailing slash.

Walter M. Pawley <>
Wump Research & Company
676 River Bend Road, Roseburg, OR 97471
_______________________________________________ mailing list
To unsubscribe, send any mail to ""

Reply via email to