Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Documentation about Multios is misleading, and perhaps untrue
- X-seq: zsh-workers 43690
- From: Tom Boyd <tvboyd23@xxxxxxxxx>
- To: p.stephenson@xxxxxxxxxxx
- Subject: Re: Documentation about Multios is misleading, and perhaps untrue
- Date: Mon, 15 Oct 2018 20:45:18 -0400
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RGzH8UFwK6LuQGgMzOSSYHqr7qQNTGxCW4yZclJ3GA4=; b=OUKfsISp4/sDIGzh+0iOPHcUlNmhNs0He2ulLcaMmCjeE99ZGK5SkKTbKgPU13CVR2 hnL3Arsc+zlhxwMduFE6HjWrLZKcSf3rXVsCq1m5yU+ygnCQ0wpoF5UYrC935Ff9LPVz koHlmaLtY+sA9iSzg6hPs98RkFGRP7bWU3udNEQNBGNHOXRZV19RYBoo4OW0Vbi7tX1P pYmqorP2VisLvEXsTAj4UOdONaqlqs3yTY85iJISMAMMfHDkHPnvHBRvHzLH9rqaYIAY 6DSJr8RgB5U5lRIonbJeKAnLMNiLCS8b3o1YVN3aCnZ0QhA4aJWKUTf6iiDKdDX1jzLQ 6mig==
- In-reply-to: <20181012083056eucas1p1254a57c82328a4e9349c3a6f8997a0e6~cz0JMnlc50925009250eucas1p10@eucas1p1.samsung.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAO1rNLg3Y=W8=r6FSOyBLfjcvKmduit6UQGYwrDGKvVEHwOQJg@mail.gmail.com> <8B27B616-9DDE-4A04-AA05-2EA7234051A0@dana.is> <CAH+w=7ZMCr9qDUM9MBXKf4C8nu=HV4TTVOQdsB-gb=oJGDVB4g@mail.gmail.com> <1539290119.4188692.1539037288.272C51E2@webmail.messagingengine.com> <CGME20181011210006epcas4p459f3f70e15e1a0c0ac11a64967651f3c@epcas4p4.samsung.com> <CAH+w=7YPKmroUfvV1=NGn5rNL7Jufr6Oc_W_kNhuDFGa-CXB=w@mail.gmail.com> <20181012083056eucas1p1254a57c82328a4e9349c3a6f8997a0e6~cz0JMnlc50925009250eucas1p10@eucas1p1.samsung.com>
I think this section should just breifly describe that the file
descriptors are opened before the command is executed, and that
command < file1 < file2
is *similar* to
cat file1 file2 | command
except that the first waits for all files to be opened *before* command
executes and completely fails if any file opening fails, where as cat x y z
| command immediately starts processing files and simply skips ones that
fail.
On a more general philosophical note though, I get that context is
important, but man pages and software references should **never** contain
objectively false statements. It's not ok to say something that factually
incorrect and justify it by assuming the reader will have enough "common
sense" to determine what parts are correct and which arent. These
references are the single souce of truth for a lot of readers.
On Fri, Oct 12, 2018 at 4:31 AM Peter Stephenson <p.stephenson@xxxxxxxxxxx>
wrote:
> I don't see why we shouldn't at least be a bit more careful...
>
> pws
>
> diff --git a/Doc/Zsh/redirect.yo b/Doc/Zsh/redirect.yo
> index c793638..fc52c77 100644
> --- a/Doc/Zsh/redirect.yo
> +++ b/Doc/Zsh/redirect.yo
> @@ -268,9 +268,10 @@ example(echo exit 0 >> *.sh)
>
> If the user tries to open a file descriptor for reading more than once,
> the shell opens the file descriptor as a pipe to a process that copies
> -all the specified inputs to its output in the order
> -specified, similar to bf(cat),
> -provided the tt(MULTIOS) option is set. Thus
> +all the specified inputs to its output in the order specified, provided
> +the tt(MULTIOS) option is set. This is roughly similar to bf(cat) but
> +note that shell redirection syntax implies differences in detailed
> +behaviour. Thus
>
> example(sort <foo <fubar)
>
>
>
--
Thomas Boyd
Messages sorted by:
Reverse Date,
Date,
Thread,
Author