From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 538 invoked by alias); 14 Feb 2012 15:29:09 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16762 Received: (qmail 20139 invoked from network); 14 Feb 2012 15:29:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at internecto.net designates 176.9.245.29 as permitted sender) X-Virus-Scanned: Debian amavisd-new at mx1.internecto.net Date: Tue, 14 Feb 2012 15:27:41 +0000 From: Mark van Dijk To: zsh-users@zsh.org Subject: Re: Catch URLs (was: "Literal" command execution) In-Reply-To: <20120213125759.416c7016@pwslap01u.europe.root.pri> References: <20120123205150.27077e4eea9d7be1e632508f@users.sf.net> <35878fa4ecfd0dee27367340676d7b30@voidzero.net> <20120213125759.416c7016@pwslap01u.europe.root.pri> Organization: Internecto SIS X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20120214152858.1FB1A3806F0@mx1.internecto.net> > I don't think reply can be need outside url-quote-magic, can it? > In fact, the function itself doesn't use it either --- ideally zstyle > should have a mechanism for making it local within itself. > > Index: Functions/Zle/url-quote-magic > =================================================================== > RCS file: /cvsroot/zsh/zsh/Functions/Zle/url-quote-magic,v > retrieving revision 1.3 > diff -p -u -r1.3 url-quote-magic > --- Functions/Zle/url-quote-magic 11 Jul 2008 19:12:24 > -0000 1.3 +++ Functions/Zle/url-quote-magic 13 Feb 2012 > 12:56:17 -0000 @@ -60,6 +60,7 @@ > # Use compsys for nested quoting analysis and command parsing. > > # Establish default values for styles, but only if not already set > +local -a reply > > zstyle -m ':url-quote-magic:\*' url-metas '*' || > zstyle ':url-quote-magic:*' url-metas '*?[]^(|)~#{}=' > Ah, that's easier than I expected. Thanks!