[Pkg-zsh-devel] Bug#908033: zsh: A pipe sometimes yields a TTOU signal (regression in zsh 5.6)

Vincent Lefevre vincent at vinc17.net
Wed Sep 5 10:04:44 BST 2018


Package: zsh
Version: 5.6-1
Severity: important

I sometimes get:

ypig:~> dpkg -l|gr mercurial
ii  mercurial                                                   4.7-1                                    amd64        easy-to-use, scalable distributed version control system
ii  mercurial-common                                            4.7-1                                    all          easy-to-use, scalable distributed version control system (common files)
zsh: exit 150
zsh: suspended (tty output)  pager-wrapper grep --color=always --line-buffered -E mercurial
ypig:~[TTOU]>

where

gr: aliased to pager-wrapper grep --color=always --line-buffered -E

and pager-wrapper is:

pager-wrapper () {
        local -a opt
        while [[ $1 == -* ]]
        do
                opt+=$1 
                shift
        done
        if [[ -t 1 ]]
        then
                $@ $opt | less -+c -FRX
        else
                $@
        fi
}

There was no such issue with previous zsh versions.

I've just posted a message to zsh-workers:

  zsh 5.6 regression: a pipe sometimes yields a TTOU signal

-- Package-specific info:

Packages which provide vendor completions:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  0install-core  2.12.3-1     amd64        cross-distribution packaging syst
ii  curl           7.61.0-1     amd64        command line tool for transferrin
ii  git-buildpacka 0.9.10       all          Suite to help with Debian package
ii  pulseaudio     12.0-1       amd64        PulseAudio sound server
ii  systemd        237-4        amd64        system and service manager
ii  udev           237-4        amd64        /dev/ and hotplug management daem

dpkg-query: no path found matching pattern /usr/share/zsh/vendor-functions/


-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.17.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages zsh depends on:
ii  libc6       2.27-6
ii  libcap2     1:2.25-1.2
ii  libtinfo6   6.1+20180714-1
ii  zsh-common  5.6-1

Versions of packages zsh recommends:
ii  libc6         2.27-6
ii  libncursesw6  6.1+20180714-1
ii  libpcre3      2:8.39-11

Versions of packages zsh suggests:
ii  zsh-doc  5.6-1

-- no debconf information



More information about the Pkg-zsh-devel mailing list