* [PATCH] man page: redirection operators: fix swapped stdin/stdout
@ 2022-05-16 23:02 Forest
2024-04-06 6:23 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Forest @ 2022-05-16 23:02 UTC (permalink / raw)
To: dash
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(-)
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
--
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] man page: redirection operators: fix swapped stdin/stdout
2022-05-16 23:02 [PATCH] man page: redirection operators: fix swapped stdin/stdout Forest
@ 2024-04-06 6:23 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2024-04-06 6:23 UTC (permalink / raw)
To: Forest; +Cc: dash
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.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-06 6:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-16 23:02 [PATCH] man page: redirection operators: fix swapped stdin/stdout Forest
2024-04-06 6:23 ` Herbert Xu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.