[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
The following reply was made to PR standards/40554; it has been noted by GNATS.
From: David Laight <david%l8s.co.uk@localhost>
Subject: Re: standards/40554
Date: Thu, 5 Feb 2009 21:08:25 +0000
On Thu, Feb 05, 2009 at 08:45:02PM +0000, Robert Elz wrote:
> I assumed that he meant that the man page says (simplified)
> "duplicate stdout to n2" which kind of suggests dup2(1,n2)
> whereas what really happens is dup2(n2,1).
> For <& the man page uses "from" - and really (aside from the
> default target fd) <& and >& are the exact same operation.
> I'm not sure I'd treat the "to" as an error though, as it makes the
> wording for >& match the wording for > (just as the wording for <&
> matches the wording for <).
FWIW 2>&1 changes stderr to write to the same place as stdout.
David Laight: david%l8s.co.uk@localhost
Main Index |
Thread Index |