On 12/11/15 13:56, th...@vmware.com wrote:
Jonny Grant writes:
> Hello
> Is this a bug? line numbers are output as (2), but actually they are
> different. Note that also the "Hello" is output in the wrong order.. I
> presume this may be the OS rather than GNU Make.
>
> Please keep my email address in replies as I am not a member of this list.
>
> Regards, Jonny
>
> $ make -f makefile.mak
> makefile.mak:2: One
> makefile.mak:2: Two
> makefile.mak:2: Three
> Hello
>
> $ make --version
> GNU Make 4.1
> Built for i686-pc-cygwin
> Copyright (C) 1988-2014 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
>
>
> makefile.mak (not sure if the TABs have been lost)
> all:
> @echo Hello
> $(warning One)
> $(warning Two)
> $(warning Three)
>
Tabs have been lost.
If the 'warning' lines are at the beginning of the line, make behaves
with the proper line numbers.
If there are tabs before each 'warning', then you get the result you
posted.
A curious result, to be sure.
Hello
My expectation is that regardless of where on the line the 'warning'
was, it would still output.
Would you like me to file this on the GNU Make bugtracker?
I can pay a bugbounty :)
Please keep my email address in any replies.
Regards, Jonny
_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make