[PATCH] man page: redirection operators: fix swapped stdin/stdout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-- 



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux