From owner-freebsd-doc@FreeBSD.ORG Tue Apr 17 11:30:06 2012 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 459BA106566C for ; Tue, 17 Apr 2012 11:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 307638FC15 for ; Tue, 17 Apr 2012 11:30:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3HBU5XT043752 for ; Tue, 17 Apr 2012 11:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3HBU5jP043749; Tue, 17 Apr 2012 11:30:05 GMT (envelope-from gnats) Date: Tue, 17 Apr 2012 11:30:05 GMT Message-Id: <201204171130.q3HBU5jP043749@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: Taras Korenko Cc: Subject: Re: docs/167020: Bad command-line example in handbook X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Taras Korenko List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2012 11:30:06 -0000 The following reply was made to PR docs/167020; it has been noted by GNATS. From: Taras Korenko To: "Bj.rn Heidotting" Cc: bug-followup@FreeBSD.org Subject: Re: docs/167020: Bad command-line example in handbook Date: Tue, 17 Apr 2012 14:16:27 +0300 On Tue, Apr 17, 2012 at 10:45:08AM +0000, Björn Heidotting wrote: > > >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. > ... Actually, this line is correct. At least, for sh(1). ------------------------------------------------------------------------------ Simple Commands If a simple command has been recognized, the shell performs the following actions: 1. Leading words of the form ``name=value'' are stripped off and assigned to the environment of the simple command. Redirection operators and their arguments (as described below) are stripped off and saved for processing. -- (c) man 1 sh -------------------------------------------------------------- An example: nx6125% /bin/sh $ echo $VAR $ VAR='tuesday' /bin/sh -c 'echo $VAR' tuesday $ echo $VAR $ -- Best regards, Taras Korenko