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 <w...@wump.org> Wump Research & Company 676 River Bend Road, Roseburg, OR 97471 541-672-8975 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"