Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Catch URLs (was: "Literal" command execution)
On Sun, 1 Apr 2012 18:18:20 +0100
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> On Sat, 31 Mar 2012 18:00:50 +0200
> Mark <lists+zsh@xxxxxxxxxxxxxx> wrote:
> > Hmm, I have recently upgraded zsh and although I saw your patch
> > included, the error came back. Apparently I had fixed it manually.
> > Please see below. I wonder whether this method is ideal for you.
(snip)
> I see what's happening now... there are functions defined internally,
> and I only put the "local" in the function that's only run once to
> define them.
>
> Your solution's probably OK, since with the "-a" the shell doesn't
> print the value after "local" the second time, as it would with
> "local reply; local reply". Still, I've kept with the spirit of what
> I did before...
>
> Index: Functions/Zle/url-quote-magic
(snip)
Yes, this fix works fine. Thanks again :)
Mark
--
Love truth, but pardon error.
--Voltaire, "Deuxième discours: de la liberté,"
Sept Discours en Vers sur l'Homme (1738)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author