Message ID | 20141111204726.GA13651@free.fr (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Herbert Xu |
Headers | show |
On Tue, Nov 11, 2014 at 09:47:27PM +0100, Stéphane Aulery wrote: > 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. Please incorporate the comments by Stephane Chazelas. Thanks,
Hello, Le mercredi 12 novembre 2014 à 10:12:04, Herbert Xu a écrit : > On Tue, Nov 11, 2014 at 09:47:27PM +0100, Stéphane Aulery wrote: > > 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." > > > > > > > > > > Yes that sounds much better. Please send a patch. > > > > Here is one. Stephen, the correction of the first line is abandoned? > > Please incorporate the comments by Stephane Chazelas. I'm not subscribed to the list, I had missed the message of Stephane Chazelas. What proposal do you want please? [n1]>&n2 Redirect standard output (or fd n1) to the same "open file description" as on fd n2. [n1]>&n2 Redirect standard output (or fd n1) to the same resource as open on fd n2. [n1]>&n2 Copy fd n2 as stdout (or fd n1) Thanks,
--- 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