Skip site navigation (1)Skip section navigation (2)
Date:      3 Jan 2005 23:36:25 -0000
From:      Mike Meyer <mwm@mired.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   docs/75774: [PATCH] cp documentation fails to mention -R dir/ behavior
Message-ID:  <20050103233625.40907.qmail@mired.org>
Resent-Message-ID: <200501032340.j03NeRMv000529@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050103233625.40907.qmail>