Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Prepend/append to the members of a list
- X-seq: zsh-workers 22930
- From: "Nikolai Weibull" <now@xxxxxxxx>
- To: "Jörg Sommer" <joerg@xxxxxxxxxxxx>
- Subject: Re: Prepend/append to the members of a list
- Date: Mon, 30 Oct 2006 19:23:02 +0100
- Cc: zsh-workers@xxxxxxxxxx
- 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=
- In-reply-to: <20061030170919.GA9507@xxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20061030170919.GA9507@xxxxxxxxxxxx>
- Sender: nikolai.weibull@xxxxxxxxx
On 10/30/06, Jörg Sommer <joerg@xxxxxxxxxxxx> 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=(!ls*); ls dir/$a
and it requires that you have rcexpandparam set.
nikolai
Messages sorted by:
Reverse Date,
Date,
Thread,
Author