Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: glob qualifier to prepend a word
- X-seq: zsh-workers 27699
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: PATCH: glob qualifier to prepend a word
- Date: Tue, 9 Feb 2010 21:43:21 +0100
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- 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=
- In-reply-to: <6084.1265725808@xxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <6084.1265725808@xxxxxxx>
On 9 February 2010 15:30, Peter Stephenson <pws@xxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author