Date: Sun, 7 Nov 1999 20:33:26 +0000 From: Mark Ovens <mark@ukug.uk.freebsd.org> To: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl> Cc: doc@freebsd.org Subject: Re: cp Message-ID: <19991107203325.B316@marder-1> In-Reply-To: <19991105203615.B12970@daemon.ninth-circle.org>
index | next in thread | previous in thread | raw e-mail
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 <http://home.wxs.nl/~asmodai>
> 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
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991107203325.B316>
