[Pkg-zsh-devel] Bug#802581: Bug#802581: zsh: url-quote-magic no longer works when pasting URL's

Vincent Lefevre vincent at vinc17.net
Wed Oct 21 14:36:19 UTC 2015


On 2015-10-21 16:31:58 +0200, Axel Beckert wrote:
> Vincent Lefevre wrote:
> > On 2015-10-21 14:17:53 +0200, Axel Beckert wrote:
> > > Any chance that your bug report is about the same thing I reported
> > > upstream back in August against 5.0.8-test-3?
> > 
> > Hmm... yes, except that I need the following 3 lines:
> > 
> >   autoload -Uz bracketed-paste-magic
> >   zle -N bracketed-paste bracketed-paste-magic
> >   zstyle :bracketed-paste-magic paste-init backward-extend-paste
> > 
> > otherwise characters are escaped even in single quotes.
> 
> Hrm, lemme try. Hrm. No, I don't seem to need that. And I'm sure it's
> not historically in the remainder of config. Strange.

In case I wasn't clear, I've done (to use the default config):

$ zsh -f
cventin% autoload -Uz url-quote-magic
cventin% zle -N self-insert url-quote-magic
cventin% autoload -Uz bracketed-paste-magic
cventin% zle -N bracketed-paste bracketed-paste-magic
cventin% wget '

Then, when I paste http://localhost/foo&bar I get:

cventin% wget 'http://localhost/foo\&bar

instead of

cventin% wget 'http://localhost/foo&bar

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Pkg-zsh-devel mailing list