docs/167020: Bad command-line example in handbook
Björn Heidotting
b.heidotting at yahoo.com
Tue Apr 17 10:50:02 UTC 2012
>Number: 167020
>Category: docs
>Synopsis: Bad command-line example in handbook
>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: Tue Apr 17 10:50:02 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Björn Heidotting
>Release: 8.2-RELEASE
>Organization:
>Environment:
>Description:
In Chapter 19.12 (Backup Basics) there is a bad command-line example. The handbooks shows the following:
Example 19-2. Using dump over ssh with RSH set
# RSH=/usr/bin/ssh /sbin/dump -0uan -f targetuser at targetmachine.example.com:/dev/sa0 /usr
This won´t work, because this are two commands which are not separated.
>How-To-Repeat:
fgrep '<userinput>RSH' /usr/doc/en_US.ISO8859-1/books/handbook/disks/chapter.sgml
>Fix:
Insert a control operator between the commands like:
# RSH=/usr/bin/ssh && /sbin/dump -0uan -f targetuser at targetmachine.example.com:/dev/sa0 /usr
OR
List the commands, each on a separate line:
# RSH=/usr/bin/ssh
# /sbin/dump -0uan -f targetuser at targetmachine.example.com:/dev/sa0 /usr
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-doc
mailing list