bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #28230] $(eval) does not understand multiline


From: anonymous
Subject: [bug #28230] $(eval) does not understand multiline
Date: Tue, 08 Dec 2009 22:02:01 +0000
User-agent: Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.9.0.13) Gecko/2009080623 Firefox/3.0.13

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]