zsh-workers
 help / color / mirror / code / Atom feed
From: dana <dana@dana.is>
To: Tom Boyd <tvboyd23@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: Documentation about Multios is misleading, and perhaps untrue
Date: Wed, 10 Oct 2018 23:05:43 -0500	[thread overview]
Message-ID: <8B27B616-9DDE-4A04-AA05-2EA7234051A0@dana.is> (raw)
In-Reply-To: <CAO1rNLg3Y=W8=r6FSOyBLfjcvKmduit6UQGYwrDGKvVEHwOQJg@mail.gmail.com>

On 10 Oct 2018, at 21:33, Tom Boyd <tvboyd23@gmail.com> 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.


  reply	other threads:[~2018-10-11  4:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-11  2:33 Tom Boyd
2018-10-11  4:05 ` dana [this message]
2018-10-11 19:12   ` Bart Schaefer
2018-10-11 20:35     ` Daniel Shahaf
2018-10-11 20:59       ` Bart Schaefer
2018-10-12  8:30         ` Peter Stephenson
2018-10-16  0:45           ` Tom Boyd
2018-10-16  2:07             ` Daniel Shahaf
2018-10-16  9:33               ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8B27B616-9DDE-4A04-AA05-2EA7234051A0@dana.is \
    --to=dana@dana.is \
    --cc=tvboyd23@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).