Browse Source
When chainlint.sed detects commands separated by a semicolon rather than by `&&`, it places a ?!SEMI?! 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 ?!SEMI?! annotation to the location of the semicolon 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>maint
![sunshine@sunshineco.com](/assets/img/avatar_default.png)
![Junio C Hamano](/assets/img/avatar_default.png)
5 changed files with 18 additions and 18 deletions
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
||||
! (foo && bar) && |
||||
! (foo && bar) >baz && |
||||
|
||||
?!SEMI?!! (foo; bar) && |
||||
?!SEMI?!! (foo; bar) >baz |
||||
! (foo; ?!SEMI?! bar) && |
||||
! (foo; ?!SEMI?! bar) >baz |
||||
|
@ -1,20 +1,20 @@
@@ -1,20 +1,20 @@
|
||||
( |
||||
?!SEMI?! cat foo ; echo bar ?!AMP?! |
||||
?!SEMI?! cat foo ; echo bar |
||||
cat foo ; ?!SEMI?! echo bar ?!AMP?! |
||||
cat foo ; ?!SEMI?! echo bar |
||||
>) && |
||||
( |
||||
?!SEMI?! cat foo ; echo bar && |
||||
?!SEMI?! cat foo ; echo bar |
||||
cat foo ; ?!SEMI?! echo bar && |
||||
cat foo ; ?!SEMI?! echo bar |
||||
>) && |
||||
( |
||||
echo "foo; bar" && |
||||
?!SEMI?! cat foo; echo bar |
||||
cat foo; ?!SEMI?! echo bar |
||||
>) && |
||||
( |
||||
?!SEMI?! foo; |
||||
foo; ?!SEMI?! |
||||
>) && |
||||
( |
||||
cd foo && |
||||
for i in a b c; do |
||||
?!SEMI?! echo; |
||||
echo; ?!SEMI?! |
||||
> done) |
||||
|
Loading…
Reference in new issue