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

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


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.

> > % autoload -Uz url-quote-magic
> > % zle -N self-insert url-quote-magic
> > % wget
> > 
> > Then after "wget ", paste: http://localhost/foo&bar
> > 
> > I thought that the problem was solved upstream.
> 
> No, there was nothing to solve. bracketed-paste is a new feature and
> it doesn't call self-insert when pasting.

If you mean that this is not possible to solve the problem
transparently, then this new feature and the solution should be
announced in the NEWS.Debian file, IMHO. Otherwise users don't
know that they have to update their .zshrc file.

Even the bracketed-paste feature alone is worth an announcement. For
instance, pasting a command with a new line at the end no longer works
as before; users may be surprised.

-- 
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