Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Documentation about Multios is misleading, and perhaps untrue



On 10 Oct 2018, at 21:33, Tom Boyd <tvboyd23@xxxxxxxxx> wrote:
>What should be done about this ?

The patch below documents the error for <file, which is consistent with the
documentation for the other redirection operators.

Not sure if there's really an issue with the rest; i've never assumed from that
description that it means it works *exactly* like cat, just that the effect is
similar in the general case. But i guess the examples could be qualified as
'roughly' equivalent or whatever, idk

dana


diff --git a/Doc/Zsh/redirect.yo b/Doc/Zsh/redirect.yo
index c793638b7..833241574 100644
--- a/Doc/Zsh/redirect.yo
+++ b/Doc/Zsh/redirect.yo
@@ -26,6 +26,7 @@ separate filename in turn.
 startitem()
 item(tt(<) var(word))(
 Open file var(word) for reading as standard input.
+It is an error to open a file in this fashion if it does not exist.
 )
 item(tt(<>) var(word))(
 Open file var(word) for reading and writing as standard input.



Messages sorted by: Reverse Date, Date, Thread, Author