From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 583 invoked from network); 28 Sep 2006 17:58:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 28 Sep 2006 17:58:01 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 70332 invoked from network); 28 Sep 2006 17:57:54 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Sep 2006 17:57:54 -0000 Received: (qmail 22982 invoked by alias); 28 Sep 2006 17:57:47 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10769 Received: (qmail 22972 invoked from network); 28 Sep 2006 17:57:47 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 Sep 2006 17:57:47 -0000 Received: (qmail 69142 invoked from network); 28 Sep 2006 17:57:47 -0000 Received: from wx-out-0506.google.com (66.249.82.235) by a.mx.sunsite.dk with SMTP; 28 Sep 2006 17:57:45 -0000 Received: by wx-out-0506.google.com with SMTP id s7so638128wxc for ; Thu, 28 Sep 2006 10:57:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=ku6FMWG2R7MvrnZ13JVL2USiNNgCdhGR9TFmqA1TbsY/SQVvboemOYRs+QGZ50Bllck5sqG5N0SzyBfOX4KM43AFXew3bWw1ifqeiFIMAx0aCvHyO2fGY++oL+VbdAlS90sNSdMtUjRZ0Hdw1i+3a/K6EvCYH6kajU/EE4Mll/g= Received: by 10.70.67.10 with SMTP id p10mr716057wxa; Thu, 28 Sep 2006 10:57:43 -0700 (PDT) Received: from ?10.1.0.23? ( [204.107.76.236]) by mx.gmail.com with ESMTP id i36sm2994364wxd.2006.09.28.10.57.42; Thu, 28 Sep 2006 10:57:43 -0700 (PDT) In-Reply-To: <20060928175133.GA26895@cetus5.cs.utk.edu> References: <20060928175133.GA26895@cetus5.cs.utk.edu> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <34C65928-0F73-4A53-AE7A-9702191AA8D3@gmail.com> Cc: zsh-users@sunsite.dk Content-Transfer-Encoding: 7bit From: Michael Hernandez Subject: Re: Multiline Anonymous Literal Strings Date: Thu, 28 Sep 2006 13:57:31 -0400 To: Chris Johnson X-Mailer: Apple Mail (2.752.2) On Sep 28, 2006, at 1:51 PM, Chris Johnson wrote: > Hi. > > Anyone know of a way to compose a long literal string without doing > something like this? > > myvar="this is a really long string so long that I need to break" > myvar="$myvar up the assignment" > > In C, contiguous quoted strings are implicitly joined at a compile > time: > > printf("This is a really long literal strong that will extend " > "beyond 80 characters.\n"); > > In Perl and other languages, concatenation operators like ., &, and + > are available. > > One application of this problem's You can try: foo="some text on this line \ more text here \ yet more here" the \'s keep everything on one line, i.e. the newlines aren't part of the string. Mike