From patchwork Tue Nov 11 20:47:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?St=C3=A9phane_Aulery?= X-Patchwork-Id: 5277401 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-dash@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8EA88C11AC for ; Tue, 11 Nov 2014 20:49:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8F3CE2015A for ; Tue, 11 Nov 2014 20:49:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 86DB020155 for ; Tue, 11 Nov 2014 20:49:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751883AbaKKUtF (ORCPT ); Tue, 11 Nov 2014 15:49:05 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:3664 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751878AbaKKUtD (ORCPT ); Tue, 11 Nov 2014 15:49:03 -0500 Received: from hubert (unknown [88.183.246.121]) (Authenticated sender: saulery) by smtp3-g21.free.fr (Postfix) with ESMTPSA id 59EE7A6307; Tue, 11 Nov 2014 21:46:41 +0100 (CET) Received: by hubert (sSMTP sendmail emulation); Tue, 11 Nov 2014 21:47:27 +0100 Date: Tue, 11 Nov 2014 21:47:27 +0100 From: =?utf-8?B?U3TDqXBoYW5l?= Aulery To: Herbert Xu Cc: Stephen Shirley , dash@vger.kernel.org Subject: dash: details of redirection/duplication in manpage are reversed Message-ID: <20141111204726.GA13651@free.fr> References: <20141110111951.GA4185@free.fr> <20141110132409.GA8416@gondor.apana.org.au> <20141110134957.GA5664@free.fr> <20141111150805.GA18820@gondor.apana.org.au> <20141111204600.GA13252@free.fr> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20141111204600.GA13252@free.fr> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: dash-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dash@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_TVD_MIME_EPI,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, Le mardi 11 novembre 2014 à 11:08:05, Herbert Xu a écrit : > On Tue, Nov 11, 2014 at 02:23:21PM +0100, Stephen Shirley wrote: > > > > "[n1]>&n2 Redirect standard output (or n1) to n2." > > > > It doesn't cover the case where n2 is later changed, and how n1 does > > not follow this, but it's the simplest fix i see. > > Yes that sounds much better. Please send a patch. Here is one. Stephen, the correction of the first line is abandoned? [n1]<&n2 Duplicate standard input (or n1) from file descriptor n2. Regards, --- dash.1.old 2014-11-11 21:33:03.740785197 +0100 +++ dash.1.new 2014-11-11 21:41:02.747126940 +0100 @@ -406,7 +406,7 @@ .It [n] Ns \*[Lt]&- Close standard input (or n). .It [n1] Ns \*[Gt]& Ns n2 -Duplicate standard output (or n1) to n2. +Redirect standard output (or n1) to n2. .It [n] Ns \*[Gt]&- Close standard output (or n). .It [n] Ns \*[Lt]\*[Gt] file