bug-make
[Top][All Lists]
Advanced

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

[bug #16505] Line-continuation backslashes are not stripped


From: anonymous
Subject: [bug #16505] Line-continuation backslashes are not stripped
Date: Wed, 3 May 2006 18:05:19 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.4; Linux; X11; i686; en_US) KHTML/3.4.0 (like Gecko)

Follow-up Comment #5, bug #16505 (project make):

Sorry; I wasn't too clear there. My point was, basically, that the POSIX
behavior sucks }:-)

Okay, so multi-line single-quoted strings now retain the backslashes. This
implies that removing the backslashes is all you need to do, that they are
superfluous, that the behavior is now Bourne-shell-like in that an open quote
automatically causes a continuation at the end of the line. But no; when you
remove the backslashes, there's no continuation at all, hence the EOF error.
So the situation is, backslashes are still your continuation character,
except that they're useless---unless you don't mind them showing up in the
string. So for all but a tiny minority of cases, multi-line single-quoted
strings in command scripts have been removed as an usable idiom in GNU Make.

I recognize the value of POSIX compliance, especially in regulatory contexts,
but the approach usually taken by other GNU tools when the POSIX behavior is
annoying/limiting is to enable it only when POSIXLY_CORRECT is defined. I'm
wondering why that wasn't done here, especially when the POSIX behavior
disallows a useful/common idiom, and breaks a number of existing makefiles.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16505>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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