My source says that it is "Multiple Redirection"
and is the same as &> file
which is the same as > file 2>&1
(which means both standard output and standard error are sent to the same file).
&> fileis listed as the "preferred form"
I did not know that. Thanks for the good question.
have a good weekend,
sysglen
> My source says that it is "Multiple Redirection"
> and is the same as &> file
> which is the same as > file 2>&1
> (which means both standard output and standard error
> are sent to the same file).
>
> &> fileis listed as the "preferred form"
2>&1 may indeed be the preferred form in sh-style shells, but csh-style shells use >&. I would wager that construction is from a csh syntax script.
--
Darren