mkisofs and directories

Walt Pawley walt at wump.org
Wed Apr 15 18:54:56 UTC 2009


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 <walt at wump.org>
Wump Research & Company
676 River Bend Road, Roseburg, OR 97471
         541-672-8975


More information about the freebsd-questions mailing list