From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12436 invoked from network); 13 Apr 2004 19:00:52 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Apr 2004 19:00:52 -0000 Received: (qmail 7589 invoked by alias); 13 Apr 2004 19:00:34 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7348 Received: (qmail 7553 invoked from network); 13 Apr 2004 19:00:33 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 13 Apr 2004 19:00:33 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 13 Apr 2004 19:0:33 -0000 Received: (qmail 17228 invoked from network); 13 Apr 2004 19:00:33 -0000 Received: from dsl3-63-249-88-2.cruzio.com (HELO binome.blorf.net) (63.249.88.2) by a.mx.sunsite.dk with SMTP; 13 Apr 2004 19:00:29 -0000 Received: by binome.blorf.net (Postfix, from userid 1000) id DB06C229; Tue, 13 Apr 2004 12:00:27 -0700 (PDT) Date: Tue, 13 Apr 2004 12:00:27 -0700 From: Wayne Davison To: Lloyd Zusman Cc: zsh-users@sunsite.dk Subject: Re: Subscripting without temporaries Message-ID: <20040413190027.GE5188@blorf.net> References: <20040413120053.GA4420@DervishD> <040413082948.ZM20696@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 On Tue, Apr 13, 2004 at 12:40:39PM -0400, Lloyd Zusman wrote: > But what options are necessary in order to make this > work? The commands above produce this output for me: > > Some > text > [particular > text] > Another > text You must have sh_word_split set. This tells zsh to do word-splitting of variables, even when not explicitly asked to split things (like the Bourne shell does). You can either turn this off, or put double quotes around any variable that you don't want to be split. ..wayne..