From mwm@mired.org  Mon Jan  3 23:36:27 2005
Return-Path: <mwm@mired.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A482116A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  3 Jan 2005 23:36:27 +0000 (GMT)
Received: from delight.idiom.com (delight.idiom.com [216.240.32.16])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7B3A843D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  3 Jan 2005 23:36:27 +0000 (GMT)
	(envelope-from mwm@mired.org)
Received: from idiom.com (idiom.com [216.240.32.1])
	by delight.idiom.com (Postfix) with ESMTP id 339F21D2E99
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  3 Jan 2005 15:36:27 -0800 (PST)
Received: from mired.org (mwm@idiom [216.240.32.1])
	by idiom.com (8.12.11/8.12.11) with SMTP id j03NaQcb066570
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 3 Jan 2005 15:36:26 -0800 (PST)
	(envelope-from mwm@mired.org)
Received: (qmail 40908 invoked by uid 1001); 3 Jan 2005 23:36:25 -0000
Message-Id: <20050103233625.40907.qmail@mired.org>
Date: 3 Jan 2005 23:36:25 -0000
From: Mike Meyer <mwm@mired.org>
Reply-To: Mike Meyer <mwm@mired.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] cp documentation fails to mention -R dir/ behavior
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         75774
>Category:       docs
>Synopsis:       [PATCH] cp documentation fails to mention -R dir/ behavior
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    trhodes
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 03 23:40:27 GMT 2005
>Closed-Date:    Sat Feb 26 04:59:44 GMT 2005
>Last-Modified:  Sat Feb 26 04:59:44 GMT 2005
>Originator:     Mike Meyer
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
Meyer Consulting
>Environment:
System: FreeBSD guru.mired.org 5.3-STABLE FreeBSD 5.3-STABLE #13: Fri Dec 17 18:32:15 CST 2004 mwm@guru.mired.org:/usr/src/sys/i386/compile/GURU i386


>Description:

When you do "cp -R dir/ target", cp acts as if you did "cp -R dir/*
target". This is undocumented.

>How-To-Repeat:

Try the cp and see. Read the man page.

>Fix:

The attached patch fixes the man page.

--- cp.1-orig	Mon Jan  3 17:32:22 2005
+++ cp.1	Mon Jan  3 17:34:23 2005
@@ -93,6 +93,8 @@
 designates a directory,
 .Nm
 copies the directory and the entire subtree connected at that point.
+If the source_file ends in a /, the contents of the directory
+rather than the directory are copied.
 This option also causes symbolic links to be copied, rather than
 indirected through, and for
 .Nm



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: trhodes 
State-Changed-When: Thu Feb 24 00:06:43 GMT 2005 
State-Changed-Why:  
Slightly different version committed.  MFC pending, 
thanks for the submission. 


Responsible-Changed-From-To: freebsd-doc->trhodes 
Responsible-Changed-By: trhodes 
Responsible-Changed-When: Thu Feb 24 00:06:43 GMT 2005 
Responsible-Changed-Why:  
Over to me. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75774 
State-Changed-From-To: patched->closed 
State-Changed-By: trhodes 
State-Changed-When: Sat Feb 26 04:59:03 GMT 2005 
State-Changed-Why:  
MFC complete, close this PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75774 
>Unformatted:
