docs/123343: [patch] Fix $USER in Handbook Section 18.5
Gabor PALI
pgj at FreeBSD.org
Fri May 2 20:10:02 UTC 2008
>Number: 123343
>Category: docs
>Synopsis: [patch] Fix $USER in Handbook Section 18.5
>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: Fri May 02 20:10:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Gabor PALI
>Release: FreeBSD 6.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD disznohal 6.3-STABLE FreeBSD 6.3-STABLE #4: Fri Apr 4 23:29:43 CEST 2008 dezzy at disznohal:/usr/obj/usr/src/sys/GENERIC_ i386
>Description:
There is a double "markup" for the user's name in the
FreeBSD Handbook, Section 18.5 (USB Storage Devices). The text
mentions the environmental variable USER and uses its value
by $USER. But I think it is ambiguous and it should not be marked
replaceable, because it is not replaceable (by the user), it
directly implements the right thing.
I created alternative patches to give two different
solutions to this problem.
>How-To-Repeat:
>Fix:
Solution #1: Remove all $USER references and replace them
with <replaceable> tags.
--- disks.patch.2.diff begins here ---
Index: chapter.sgml
===================================================================
RCS file: /doc/en_US.ISO8859-1/books/handbook/disks/chapter.sgml,v
retrieving revision 1.282
diff -u -r1.282 chapter.sgml
--- chapter.sgml 25 Mar 2008 08:43:38 -0000 1.282
+++ chapter.sgml 2 May 2008 19:40:59 -0000
@@ -858,19 +858,19 @@
the user that is to mount the file system. One way to do that
is for <username>root</username> to create a subdirectory
owned by that user as
- <filename>/mnt/<replaceable>$USER</replaceable></filename>
- (replace <replaceable>$USER</replaceable> by the login name of
+ <filename>/mnt/<replaceable>username</replaceable></filename>
+ (replace <replaceable>username</replaceable> by the login name of
the actual user):</para>
- <screen>&prompt.root; <userinput>mkdir /mnt/$USER</userinput>
-&prompt.root; <userinput>chown <replaceable>$USER</replaceable>:<replaceable>$USER</replaceable> /mnt/<replaceable>$USER</replaceable></userinput></screen>
+ <screen>&prompt.root; <userinput>mkdir /mnt/<replaceable>username</replaceable></userinput>
+&prompt.root; <userinput>chown <replaceable>user</replaceable>:<replaceable>user</replaceable> /mnt/<replaceable>user</replaceable></userinput></screen>
<para>Suppose a USB thumbdrive is plugged in, and a device
<filename>/dev/da0s1</filename> appears. Since these devices
usually come preformatted with a FAT file system, one can
mount them like this:</para>
- <screen>&prompt.user; <userinput>mount -t msdosfs -m 644 -M 755 /dev/da0s1 /mnt/<replaceable>$USER</replaceable></userinput></screen>
+ <screen>&prompt.user; <userinput>mount -t msdosfs -m 644 -M 755 /dev/da0s1 /mnt/<replaceable>username</replaceable></userinput></screen>
<para>If you unplug the device (the disk must be unmounted
before), you should see, in the system message buffer,
--- disks.patch.2.diff ends here ---
Solution #2: Remove all <replaceable> tags.
--- disks.patch.3.diff begins here ---
Index: chapter.sgml
===================================================================
RCS file: /doc/en_US.ISO8859-1/books/handbook/disks/chapter.sgml,v
retrieving revision 1.282
diff -u -r1.282 chapter.sgml
--- chapter.sgml 25 Mar 2008 08:43:38 -0000 1.282
+++ chapter.sgml 2 May 2008 19:44:13 -0000
@@ -858,19 +858,19 @@
the user that is to mount the file system. One way to do that
is for <username>root</username> to create a subdirectory
owned by that user as
- <filename>/mnt/<replaceable>$USER</replaceable></filename>
- (replace <replaceable>$USER</replaceable> by the login name of
+ <filename>/mnt/$USER</filename>
+ ($USER will be replaced by the login name of
the actual user):</para>
<screen>&prompt.root; <userinput>mkdir /mnt/$USER</userinput>
-&prompt.root; <userinput>chown <replaceable>$USER</replaceable>:<replaceable>$USER</replaceable> /mnt/<replaceable>$USER</replaceable></userinput></screen>
+&prompt.root; <userinput>chown $USER:$USER /mnt/$USER</userinput></screen>
<para>Suppose a USB thumbdrive is plugged in, and a device
<filename>/dev/da0s1</filename> appears. Since these devices
usually come preformatted with a FAT file system, one can
mount them like this:</para>
- <screen>&prompt.user; <userinput>mount -t msdosfs -m 644 -M 755 /dev/da0s1 /mnt/<replaceable>$USER</replaceable></userinput></screen>
+ <screen>&prompt.user; <userinput>mount -t msdosfs -m 644 -M 755 /dev/da0s1 /mnt/$USER</userinput></screen>
<para>If you unplug the device (the disk must be unmounted
before), you should see, in the system message buffer,
--- disks.patch.3.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-doc
mailing list