From owner-freebsd-doc@FreeBSD.ORG Mon Jan 3 23:40:33 2005 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DB9A16A4D4 for ; Mon, 3 Jan 2005 23:40:32 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8533443D60 for ; Mon, 3 Jan 2005 23:40:31 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j03NeRX7000530 for ; Mon, 3 Jan 2005 23:40:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j03NeRMv000529; Mon, 3 Jan 2005 23:40:27 GMT (envelope-from gnats) Resent-Date: Mon, 3 Jan 2005 23:40:27 GMT Resent-Message-Id: <200501032340.j03NeRMv000529@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mike Meyer Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A482116A4CE for ; 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 ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/75774: [PATCH] cp documentation fails to mention -R dir/ behavior X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mike Meyer List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 23:40:33 -0000 >Number: 75774 >Category: docs >Synopsis: [PATCH] cp documentation fails to mention -R dir/ behavior >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 03 23:40:27 GMT 2005 >Closed-Date: >Last-Modified: >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: >Unformatted: