
When chainlint.sed detects a broken &&-chain, it places an ?!AMP?! annotation at the beginning of the line. However, this is an unusual location for programmers accustomed to error messages (from compilers, for instance) indicating the exact point of the problem. Therefore, relocate the ?!AMP?! annotation to the end of the line in order to better direct the programmer's attention to the source of the problem. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
21 lines
205 B
Plaintext
21 lines
205 B
Plaintext
(
|
|
if test -n ""
|
|
then
|
|
echo very ?!AMP?!
|
|
echo empty
|
|
elif test -z ""
|
|
then
|
|
echo foo
|
|
else
|
|
echo foo &&
|
|
cat
|
|
fi ?!AMP?!
|
|
echo poodle
|
|
>) &&
|
|
(
|
|
if test -n ""; then
|
|
echo very &&
|
|
echo empty
|
|
fi
|
|
>)
|