From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26766 invoked from network); 28 Sep 2006 18:27:21 -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=AWL,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 18:27:21 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 10185 invoked from network); 28 Sep 2006 18:27:15 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Sep 2006 18:27:15 -0000 Received: (qmail 29882 invoked by alias); 28 Sep 2006 18:27:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10771 Received: (qmail 29872 invoked from network); 28 Sep 2006 18:27:07 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 Sep 2006 18:27:07 -0000 Received: (qmail 9046 invoked from network); 28 Sep 2006 18:27:07 -0000 Received: from bes.cs.utk.edu (160.36.56.220) by a.mx.sunsite.dk with SMTP; 28 Sep 2006 18:27:05 -0000 Received: from localhost (localhost [127.0.0.1]) by bes.cs.utk.edu (Postfix) with ESMTP id 21D35FD18 for ; Thu, 28 Sep 2006 14:26:50 -0400 (EDT) X-Virus-Scanned: by amavisd-new with ClamAV and SpamAssasin at cs.utk.edu Received: from bes.cs.utk.edu ([127.0.0.1]) by localhost (bes.cs.utk.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rz454-cMV5zF for ; Thu, 28 Sep 2006 14:26:47 -0400 (EDT) Received: from cetus5.cs.utk.edu (cetus5.cs.utk.edu [160.36.56.87]) by bes.cs.utk.edu (Postfix) with ESMTP id 3B64EFD14 for ; Thu, 28 Sep 2006 14:26:47 -0400 (EDT) Received: by cetus5.cs.utk.edu (Postfix, from userid 10605) id 36CF3BE2F; Thu, 28 Sep 2006 14:27:01 -0400 (EDT) Date: Thu, 28 Sep 2006 14:27:01 -0400 From: Chris Johnson To: zsh-users@sunsite.dk Subject: Re: Multiline Anonymous Literal Strings Message-ID: <20060928182701.GA29427@cetus5.cs.utk.edu> References: <20060928175133.GA26895@cetus5.cs.utk.edu> <34C65928-0F73-4A53-AE7A-9702191AA8D3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <34C65928-0F73-4A53-AE7A-9702191AA8D3@gmail.com> X-From-Chris: Yes User-Agent: Mutt/1.5.9i Michael Hernandez sent me the following 0.7K: > >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" > > 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. I had disregarded that solution because one can't embed piecewise comments. Sorry, I failed to mention that. In the mailing list archives I just found a message about anonymous arrays and how they aren't supported. All parameter expansion requires a named parameter, so I think I'm out of luck. -- Chris Johnson cjohnson@cs.utk.edu http://www.cs.utk.edu/~cjohnson