From: Bart Schaefer <schaefer@brasslantern.com>
To: Jett Husher <jetthusher@pm.me>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: Possibly missing explanation on difference between '&>' and '> word 2>&1' with multios in manual
Date: Tue, 19 Oct 2021 14:53:50 -0700 [thread overview]
Message-ID: <CAH+w=7aJhoaCbpqMiUbKGCgC7aUFbJtkJeqJnBq9JJN9w4Rx5A@mail.gmail.com> (raw)
In-Reply-To: <WsGGA3fl7_Rls2M9BjtH39XiiEAlAGJdF69ZinN46_PUnar9xWwabMx60XEHWOxjbZNOHc7MCeRHUJ2Q_QJd8zU_iw8UvmmQqmknEZo3ZpU=@pm.me>
On Tue, Oct 19, 2021 at 8:25 AM Jett Husher <jetthusher@pm.me> wrote:
>
> Did I miss something or is the explanation really not present?
It's not precisely missing, it's just implicit. Excerpts:
"Note that the shell opens all the files to be used in the multio process
immediately, not at the point they are about to be written."
"Note also that redirections are always expanded in order. This happens
regardless of the setting of the MULTIOS option, but with the option in
effect there are additional consequences."
It's not that "&>word" all by itself is not the same as ">word 2>&1"
alone, it's that "&>word" when combined with other redirections is not
the same as ">word 2>&1" combined with other redirections.
next prev parent reply other threads:[~2021-10-19 21:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-19 15:24 Jett Husher
2021-10-19 21:53 ` Bart Schaefer [this message]
2021-10-21 14:49 ` Daniel Shahaf
2021-10-22 4:43 ` Jett Husher
2021-10-25 19:36 ` Daniel Shahaf
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='CAH+w=7aJhoaCbpqMiUbKGCgC7aUFbJtkJeqJnBq9JJN9w4Rx5A@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=jetthusher@pm.me \
--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).