From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1615 invoked by alias); 9 Feb 2010 20:43:28 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 27699 Received: (qmail 16705 invoked from network); 9 Feb 2010 20:43:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED autolearn=ham version=3.2.5 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.219.227 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=xGj51WNEsoGBG7AaptUEUvR+OlZw5y1hjhTf7sb4pSw=; b=T/VDiKD3bjf09ctk9UgdCXkImZsubWIJZI7sHv4uTjXTFQStFFFie1m6Gv1BnHVfWy /Ar971LZywJQlXPO/pWGEX6piXSC52U9eHhP7YsD4lOtDm1m/ijjX5VXqXOmOG2lSQ+w JA08zyXfnwYSuMFOp0JYu1ZWRwGUAnPvIBS30= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=CGEAP6cJ7UYA9M+21ObSyC+Hz5/cUDuNJBd3aDZMImqdr5YkxJN3afPyKPNLHG3HaP MYIxmcL4PKZKZAr4m6u4EbpRAlwgvjYTU1KWxkhlx833CwY+oET5xZBG2MX4jJqeFSNb IGVEcbli4VYE6dUJ7D5O5FnZf097w8TPuXnhY= MIME-Version: 1.0 In-Reply-To: <6084.1265725808@csr.com> References: <6084.1265725808@csr.com> Date: Tue, 9 Feb 2010 21:43:21 +0100 Message-ID: <237967ef1002091243i7752b957w77bc14bfb2cb5be9@mail.gmail.com> Subject: Re: PATCH: glob qualifier to prepend a word From: Mikael Magnusson To: Peter Stephenson Cc: Zsh hackers list Content-Type: text/plain; charset=UTF-8 On 9 February 2010 15:30, Peter Stephenson wrote: > Done properly, this time; fairly small and localised change so it looks > worth having. > Index: Doc/Zsh/expn.yo > =================================================================== > RCS file: /cvsroot/zsh/zsh/Doc/Zsh/expn.yo,v > retrieving revision 1.107 > diff -u -r1.107 expn.yo > --- Doc/Zsh/expn.yo 19 Sep 2009 16:23:22 -0000 1.107 > +++ Doc/Zsh/expn.yo 9 Feb 2010 14:27:08 -0000 > @@ -2296,6 +2296,18 @@ > them count from the last match backward. E.g.: `tt(*(-OL[1,3]))' > gives a list of the names of the three largest files. > ) > +item(tt(P))(var(string))( This fixes Pstring to look like estring does for me: --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -2296,7 +2296,7 @@ them count from the last match backward. E.g.: `tt(*(-OL[1,3]))' gives a list of the names of the three largest files. ) -item(tt(P))(var(string))( +item(tt(P)var(string))( The var(string) will be prepended to each glob match as a separate word. var(string) is delimited in the same way as arguments to the tt(e) glob qualifier described above. The qualifier can be repeated; -- Mikael Magnusson