From: Eric Sunshine Date: Fri, 13 Jul 2018 05:52:04 +0000 (-0400) Subject: t/check-non-portable-shell: make error messages more compact X-Git-Tag: v2.19.0-rc0~121^2~1 X-Git-Url: http://git.bitbasher.net/?a=commitdiff_plain;h=c433600593b1db15a9ba80136dc2096e192322b6;p=git.git t/check-non-portable-shell: make error messages more compact Error messages emitted by this linting script are long and noisy, consisting of several sections: :: error: : The line of failed shell text, usually coming from within a test body, is often indented by one or two TABs, with the result that the actual (important) text is separated from by a good deal of empty space. This can make for a difficult read, especially on typical 80-column terminals. Make the messages more compact and perhaps a bit easier to digest by folding out the leading whitespace from . Signed-off-by: Eric Sunshine Signed-off-by: Junio C Hamano --- diff --git a/t/check-non-portable-shell.pl b/t/check-non-portable-shell.pl index 11028578ff..f6dbe28b19 100755 --- a/t/check-non-portable-shell.pl +++ b/t/check-non-portable-shell.pl @@ -10,6 +10,8 @@ my $exit_code=0; sub err { my $msg = shift; + s/^\s+//; + s/\s+$//; print "$ARGV:$.: error: $msg: $_\n"; $exit_code = 1; }