man page: redirection operators: fix swapped stdin/stdout
PATCH 1/1 man page: redirection operators: fix swapped stdin/stdout
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(-)
src/dash.1 +2 -4
@@ -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
Quoted 11 lines · Forest
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_05Both 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.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt