Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Possibly missing explanation on difference between '&>' and '> word 2>&1' with multios in manual
- X-seq: zsh-workers 49498
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Jett Husher <jetthusher@xxxxx>
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- 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
- Archived-at: <https://zsh.org/workers/49498>
- In-reply-to: <WsGGA3fl7_Rls2M9BjtH39XiiEAlAGJdF69ZinN46_PUnar9xWwabMx60XEHWOxjbZNOHc7MCeRHUJ2Q_QJd8zU_iw8UvmmQqmknEZo3ZpU=@pm.me>
- List-id: <zsh-workers.zsh.org>
- References: <WsGGA3fl7_Rls2M9BjtH39XiiEAlAGJdF69ZinN46_PUnar9xWwabMx60XEHWOxjbZNOHc7MCeRHUJ2Q_QJd8zU_iw8UvmmQqmknEZo3ZpU=@pm.me>
On Tue, Oct 19, 2021 at 8:25 AM Jett Husher <jetthusher@xxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author