From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4163 invoked from network); 16 Aug 2006 06:10:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 16 Aug 2006 06:10:45 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 10453 invoked from network); 16 Aug 2006 06:10:37 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Aug 2006 06:10:37 -0000 Received: (qmail 6925 invoked by alias); 16 Aug 2006 06:10:28 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10612 Received: (qmail 6910 invoked from network); 16 Aug 2006 06:10:27 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 16 Aug 2006 06:10:27 -0000 Received: (qmail 9185 invoked from network); 16 Aug 2006 06:10:27 -0000 Received: from ug-out-1314.google.com (66.249.92.173) by a.mx.sunsite.dk with SMTP; 16 Aug 2006 06:10:26 -0000 Received: by ug-out-1314.google.com with SMTP id c2so88827ugf for ; Tue, 15 Aug 2006 23:10:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tFTlzdxcKpRbTa+li2KFHiSVXPcq3k4HQM1+HyrkjTytr4pJoIUX6NOxrI+5ZLpq7dQtZT34oGQG4FpElN3RmuT56jGUAukc4N4xTVX/aM+ZcX0EPWEyFnIWyOPlVj+Nwf92h2Hk0ICogLkMRL0aqZWm4JQlzIbKl2q/U2JFaBA= Received: by 10.67.105.19 with SMTP id h19mr149110ugm; Tue, 15 Aug 2006 23:10:26 -0700 (PDT) Received: by 10.66.221.9 with HTTP; Tue, 15 Aug 2006 23:10:26 -0700 (PDT) Message-ID: <488030720608152310s5b0052d4j5aa1db1f5dcebd4d@mail.gmail.com> Date: Tue, 15 Aug 2006 23:10:26 -0700 From: "John Reese" To: sac Subject: Re: The amazing array feature in zsh Cc: "Zsh users list" In-Reply-To: <20060816044842.44532.qmail@web8403.mail.in.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060816044842.44532.qmail@web8403.mail.in.yahoo.com> On 8/15/06, sac wrote: > ... > I dont know if any other shell provides similar > feature, but this one is too good and useful, and > makes the use of array in shell very easy. But I dont > think this is documented in zsh, atleast I couldn't > find it. > > Regards > sac. > it's mentioned briefly in the Array Parameters section of zshparam(1). I agree that it's useful and maybe not obvious enough in the documentation; I find it especially useful with the path variable. When you look at the baroque suites of functions bash users are constantly reimplementing and filling global dotfiles with to build up PATH without duplicates, you realize how much more attractive the zsh option is: typeset -U path path+=(~/bin /sw/bin /opt/local/bin)