[bug #20995] \ along multiple lines lines for '...' doesn't work

2007-09-07 Thread anonymous

Follow-up Comment #2, bug #20995 (project make):

you can forget about it - it's a feature
(http://www.gnu.org/software/make/manual/make.html#Splitting-Lines)

RTFM :-)

rgds!

Frank

___

Reply to this item at:

  

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



___
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make


[bug #20995] \ along multiple lines lines for '...' doesn't work

2007-09-07 Thread Paul D. Smith

Update of bug #20995 (project make):

  Status:None => Not A Bug  
 Open/Closed:Open => Closed 
 Summary: \ along multiple lines lines for '...' doesn't work
 =>  along multiple lines lines for '...' doesn't work 

___

Follow-up Comment #1:

Hi Frank; the 3.81 behavior is correct.  The POSIX spec for make says:

When an escaped  is found in a command line in a makefile, the
command line shall contain the backslash, the , and the next line,
except that the first character of the next line shall not be included if it
is a .

See the GNU make manual subsection "Splitting Command Lines" (node "Splitting
Lines"), in section "Command Syntax", chapter "Writing the Commands in Rules",
for details.

We are discussing adding a ".ONESHELL" feature for the next version of GNU
make; if we do that then this could be used to get the kind of behavior you're
looking for.

___

Reply to this item at:

  

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



___
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make


[bug #20995] \ along multiple lines lines for '...' doesn't work

2007-09-07 Thread anonymous

URL:
  

 Summary: \ along multiple lines lines for '...' doesn't work

 Project: make
Submitted by: None
Submitted on: Friday 09/07/2007 at 12:53 UTC
Severity: 3 - Normal
  Item Group: Bug
  Status: None
 Privacy: Public
 Assigned to: None
 Open/Closed: Open
 Discussion Lock: Any
   Component Version: 3.81
Operating System: None
   Fixed Release: None

___

Details:

> cat Makefile 
test::
echo "test1"
echo "test2"
echo "hallo \
this is a broken line"
echo 'hello \
this is another broke line' 

3.80 (old behavior):
> make test
echo "test1"
test1
echo "test2"
test2
echo "hallo \
this is a broken line"
hallo  this is a broken line
echo 'hello \
this is another broke line' 
hello this is another broke line### !!!

3.81 (new behavior):
> make test
echo "test1"
test1
echo "test2"
test2
echo "hallo \
this is a broken line"
hallo this is a broken line
echo 'hello \
this is another broke line' 
hello \ ### !!!
this is another broke line  ### !!!


This break execution of s.th. else than 'echo' (e.g. 'perl').

I guess it's a bug?

rgds!

Frank




___

Reply to this item at:

  

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



___
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make