Follow-up Comment #1, bug #28230 (project make):
To quote the info pages:
The `shell' function performs the same function that backquotes
(``') perform in most shells: it does "command expansion". This means that
it takes as an argument a shell command and evaluates to the output of the
command. The only processing `make' does on the result is to convert each
newline (or carriage-return / newline pair) to a single space. If there is a
trailing (carriage-return and) newline it will simply be removed.
So, $(eval) isn't actually seeing two lines in this case, but just a single
one. The described behavior is as specified by the documentation, so it seems
like "not a bug", though maybe a feature request for a version of $(shell)
that gives a multiline result is called for.
Philip Guenther
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?28230>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-make