From owner-freebsd-doc Sun Nov 7 12:33:54 1999 Delivered-To: freebsd-doc@freebsd.org Received: from typhoon.mail.pipex.net (typhoon.mail.pipex.net [158.43.128.27]) by hub.freebsd.org (Postfix) with SMTP id E000414D08 for ; Sun, 7 Nov 1999 12:33:46 -0800 (PST) (envelope-from mark@dogma.freebsd-uk.eu.org) Received: (qmail 22539 invoked from network); 7 Nov 1999 20:33:44 -0000 Received: from userah82.uk.uudial.com (HELO marder-1.) (62.188.133.13) by smtp.dial.pipex.com with SMTP; 7 Nov 1999 20:33:44 -0000 Received: (from mark@localhost) by marder-1. (8.9.3/8.8.8) id UAA01677; Sun, 7 Nov 1999 20:33:26 GMT (envelope-from mark) Date: Sun, 7 Nov 1999 20:33:26 +0000 From: Mark Ovens To: Jeroen Ruigrok/Asmodai Cc: doc@freebsd.org Subject: Re: cp Message-ID: <19991107203325.B316@marder-1> References: <19991105203615.B12970@daemon.ninth-circle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <19991105203615.B12970@daemon.ninth-circle.org> Organization: Total lack of Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Nov 05, 1999 at 08:36:15PM +0100, Jeroen Ruigrok/Asmodai wrote: > A question, > > following a discussion on the automake discussion list I tried to use cp > -r and found that it was actually usable. > > >From what I am able to glance from the source file cp.c it looks as if > -r and -R do the same. > > If so, we porbably want to add this flag to the man page, but first I > wonder if -R and -r _are_ in fact the same. > No they aren't, and I speak from experience. If FIFOs are involved then ``-r'' tries to copy the contents of the FIFO whereas ``-R'' copies the FIFO itself: cp.c line 402 e S_IFIFO: if (Rflag) { if (copy_fifo(curr->fts_statp, !dne)) rval = 1; } else { if (copy_file(curr, dne)) rval = 1; > Comments? > > -- > Jeroen Ruigrok van der Werven/Asmodai asmodai(at)wxs.nl > The BSD Programmer's Documentation Project > Network/Security Specialist BSD: Technical excellence at its best > There are 3 kinds of lies: lies, damned lies, and statistics. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-doc" in the body of the message -- STATE-OF-THE-ART: Any computer you can't afford. OBSOLETE: Any computer you own. ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message