Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Apr 2012 10:45:08 GMT
From:      Björn Heidotting <b.heidotting@yahoo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/167020: Bad command-line example in handbook
Message-ID:  <201204171045.q3HAj8eO078035@red.freebsd.org>
Resent-Message-ID: <201204171050.q3HAo2qH006773@freefall.freebsd.org>

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

>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@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@targetmachine.example.com:/dev/sa0 /usr

OR

List the commands, each on a separate line:

# RSH=/usr/bin/ssh
# /sbin/dump -0uan -f targetuser@targetmachine.example.com:/dev/sa0 /usr

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



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