diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-04-05 00:02:14 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-05 00:03:05 -0700 |
commit | d55de70a1edf885fd0c45c9e20a3a00c3f886607 (patch) | |
tree | ca637aaaea52410b6c3f0e205dc8336d3a0a5f04 /builtin/name-rev.c | |
parent | Git 2.4.11 (diff) | |
download | tgif-d55de70a1edf885fd0c45c9e20a3a00c3f886607.tar.xz |
Makefile: fix misdirected redirections
In general "echo 2>&1 $msg" to redirect a possible error message
that comes from 'echo' itself into the same standard output stream
$msg is getting written to does not make any sense; it is not like
we are expecting to see any errors out of 'echo' in these statements,
and even if it were the case, there is no reason to prevent the
error messages from being sent to the standard error stream.
These are clearly meant to send the argument given to echo to the
standard error stream as error messages. Correctly redirect by
saying "send what is written to the standard output to the standard
error", i.e. "1>&2" aka ">&2".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/name-rev.c')
0 files changed, 0 insertions, 0 deletions