From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3498 invoked from network); 30 Oct 2006 18:23:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 30 Oct 2006 18:23:21 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 45858 invoked from network); 30 Oct 2006 18:23:11 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 Oct 2006 18:23:11 -0000 Received: (qmail 22858 invoked by alias); 30 Oct 2006 18:23:09 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22930 Received: (qmail 22848 invoked from network); 30 Oct 2006 18:23:08 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 30 Oct 2006 18:23:08 -0000 Received: (qmail 45546 invoked from network); 30 Oct 2006 18:23:08 -0000 Received: from wx-out-0506.google.com (66.249.82.234) by a.mx.sunsite.dk with SMTP; 30 Oct 2006 18:23:04 -0000 Received: by wx-out-0506.google.com with SMTP id s7so1384040wxc for ; Mon, 30 Oct 2006 10:23:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=UDZFYSXK0F4Us/1BMTK/Q3EkbPg8AgHgDwkzhNcqwrN4vMYrGihrcnbUDMkT4bBkcvAtGt8yQ/pNOuKTOTuorh19pTpmsKs0KvZTZc3fgdCxUiaVJzFjIeIcq1EurBzp1iMmEP8/4pypT0Qyire5kqJEEo0G8InAbJsjZ+2wvA0= Received: by 10.90.34.9 with SMTP id h9mr1245252agh; Mon, 30 Oct 2006 10:23:03 -0800 (PST) Received: by 10.90.31.6 with HTTP; Mon, 30 Oct 2006 10:23:02 -0800 (PST) Message-ID: Date: Mon, 30 Oct 2006 19:23:02 +0100 From: "Nikolai Weibull" Sender: nikolai.weibull@gmail.com To: "=?ISO-8859-1?Q?J=F6rg_Sommer?=" Subject: Re: Prepend/append to the members of a list Cc: zsh-workers@sunsite.dk In-Reply-To: <20061030170919.GA9507@alea.gnuu.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20061030170919.GA9507@alea.gnuu.de> X-Google-Sender-Auth: 4a79f429ea71c0b1 On 10/30/06, J=F6rg Sommer wrote: > Hi, > > somewhere I've used > > % ls foo bar bla > > Then I've left the directory. Later I want to do > > % ls !ls*:(s/^/dir/) > > But it does not work, because the s/// expression doesn't know ^. OK, this isn't a very good solution, but it works: a=3D(!ls*); ls dir/$a and it requires that you have rcexpandparam set. nikolai