docs/74533: [patch] fdp-primer: change cp -r to cp -R

Joel Dahl joel at automatvapen.se
Mon Nov 29 19:50:23 UTC 2004


>Number:         74533
>Category:       docs
>Synopsis:       [patch] fdp-primer: change cp -r to cp -R
>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 Nov 29 19:50:22 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Joel Dahl
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD dude.automatvapen.se 5.3-STABLE FreeBSD 5.3-STABLE #1: Sat Nov 13 19:50:36 CET 2004 joel at dude.automatvapen.se:/usr/obj/usr/src/sys/WRK i386


	
>Description:
# From fdp-primer, chapter 1.3:
"
Copy an existing article to use as a template. In this case, you have
decided that your new article belongs in a directory called vpn-w2k.

% cd doc/en_US.ISO8859-1/articles
% cp -r committers-guide vpn-w2k
"

# From cp(1) man page:
"
COMPATIBILITY
Historic versions of the cp utility had a -r option.  This
implementation supports that option, however, its use is strongly
discouraged, as it does not correctly copy special files, symbolic links
or fifo's.
"

cp -r is used in the quick start, despite the fact that its use is
strongly discouraged, so we're breaking our own rules. cp -R is a
better choice.

>How-To-Repeat:
	
>Fix:

	
--- cpr.diff begins here ---
Index: chapter.sgml
===================================================================
RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/fdp-primer/overview/chapter.sgml,v
retrieving revision 1.21
diff -u -r1.21 chapter.sgml
--- chapter.sgml	6 Jul 2004 15:09:52 -0000	1.21
+++ chapter.sgml	29 Nov 2004 19:24:04 -0000
@@ -226,7 +226,7 @@
 	      directory called <filename>vpn-w2k</filename>.</para>
 
 	    <screen>&prompt.user; <userinput>cd doc/en_US.ISO8859-1/articles</userinput>
-&prompt.user; <userinput>cp -r committers-guide vpn-w2k</userinput></screen>
+&prompt.user; <userinput>cp -R committers-guide vpn-w2k</userinput></screen>
 	  </step>
 	</procedure>
 
--- cpr.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list