Message ID | hpl58htt4cqjtgkt4lvqus3fpc8jc5fdls@4ax.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Herbert Xu |
Headers | show |
Series | man page: redirection operators: fix swapped stdin/stdout | expand |
On Mon, May 16, 2022 at 04:02:24PM -0700, Forest wrote: > The Redirections section incorrectly claimed that <& replaces stdout > and >& replaces stdin. Swapped them to make it read correctly. > > Ref: > https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_07_05 > > Both errors were followed by extra text that looked like remains of a > mostly-deleted sentence. Removed those. > --- > src/dash.1 | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) Patch applied. Thanks.
diff --git a/src/dash.1 b/src/dash.1 index ff02237..113a4db 100644 --- a/src/dash.1 +++ b/src/dash.1 @@ -402,13 +402,11 @@ Append standard output (or n) to file. .It [n] Ns \*[Lt] file Redirect standard input (or n) from file. .It [n1] Ns \*[Lt]& Ns n2 -Copy file descriptor n2 as stdout (or fd n1). -fd n2. +Copy file descriptor n2 as stdin (or fd n1). .It [n] Ns \*[Lt]&- Close standard input (or n). .It [n1] Ns \*[Gt]& Ns n2 -Copy file descriptor n2 as stdin (or fd n1). -fd n2. +Copy file descriptor n2 as stdout (or fd n1). .It [n] Ns \*[Gt]&- Close standard output (or n). .It [n] Ns \*[Lt]\*[Gt] file