From: Junio C Hamano Date: Mon, 16 Feb 2009 02:21:45 GMT Subject: Re: [PATCH] builtin-remote: better handling of multiple remote HEADs Message-ID: <7v7i3rglza.fsf@gitster.siamese.dyndns.org> In-Reply-To: <76718490902150613i79517e6dwcec8e1e40c56bcc8@mail.gmail.com> Jay Soffian writes: > Bash allows both the standard output (file descriptor 1) and > the standard error > output (file descriptor 2) to be redirected to the file whose > name is the expansion of word with this construct. > > There are two formats for redirecting standard output and > standard error: > > &>word > and > >&word > > Of the two forms, the first is preferred. This is semantically > equivalent to > > >word 2>&1 Just to clarify, the above is not a recommendation for shell scripts in git project. The last one is the only one we recommend in our scripts. By the say, does anybody know why bash people recommend &>word form? Neither &>word nor >&word to send both stderr and stdout to the file is from true Bourne, but at least the use of >&word form for this purpose is more familiar to people who are used to Csh.