Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!EDDIE.MIT.EDU!mcgill-vision!iros1!pinard From: mcgill-vision!iros1!pinard@EDDIE.MIT.EDU (Francois Pinard) Newsgroups: gnu.utils.bug Subject: gawk continuations Message-ID: <9001132004.AA07727@kovic.IRO.UMontreal.CA> Date: 13 Jan 90 20:04:12 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 32 The documentation says: If you would like to split a single statement into two lines at a point where a newline would terminate it, you can "continue" it by ending the first line with a backslash character, `\'. This is allowed absolutely anywhere in the statement, even in the middle of a string or regular expression. For example: But it does not seem to work, at least for strings. The following input: ------------------------------------------------------------> BEGIN { print "A single line \ continued" } ------------------------------------------------------------< yields: ------------------------------------------------------------> gawk -v -f test.awk Gnu Awk (gawk) 2.10beta 07 Apr 1989 gawk: syntax error near line 2: ^ parse error ------------------------------------------------------------< -- Franc,ois Pinard pinard@iro.umontreal.ca (514) 588-4656 ``Vivement GNU!'' ...!uunet!iros1!pinard