[Pkg-zsh-devel] Bug#794297: zsh: newuser.zshrc.recommended += highlight pasted text

Daniel Shahaf danielsh at apache.org
Fri Jul 31 23:04:12 UTC 2015


Package: zsh
Version: 5.0.7-5
Severity: wishlist
Tags: patch

Dear Maintainer,

The next release of zsh (5.0.9) will introduce a behaviour change,
whereby pasted text will not be automatically executed, even if it
contains newlines (see upstream commit
98687fa1dec803f041cbb5417c146d8aa5129b53).

Upstream had concerns¹ that users might be confused by the behaviour
change, since 5.0.8 and earlier would simply execute a command-line that
was pasted into the terminal, if it ended with a newline.

¹ http://www.zsh.org/cgi-bin/mla/redirect?WORKERNUMBER=35835

One way to make it clear that the shell is waiting for input is to set
'zle_highlight=(paste:standout)' (see b4aff3bc52e15be87304183b3ae959668192b48c).
 Please consider adding that setting to newuser.zshrc.recommended.

Patch attached.

Cheers,

Daniel

P.S. Discussed on #pkg-zsh with Carsten prior to sending.


-- System Information:
Debian Release: 8.1
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing-updates'), (500, 'stable-updates'), (200, 'unstable'), (200, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages zsh depends on:
ii  dpkg        1.17.25
ii  libc6       2.19-18
ii  libcap2     1:2.24-8
ii  libtinfo5   5.9+20140913-1+b1
ii  zsh-common  5.0.7-5

Versions of packages zsh recommends:
ii  libncursesw5  5.9+20140913-1+b1
ii  libpcre3      2:8.35-3.3

Versions of packages zsh suggests:
pn  zsh-doc  <none>

-- debconf-show failed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-paste-highlight.diff
Type: text/x-diff
Size: 740 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-zsh-devel/attachments/20150731/197a8041/attachment.diff>


More information about the Pkg-zsh-devel mailing list