Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh 5.6 regression: a pipe sometimes yields a TTOU signal



Hi,

After the upgrade to zsh 5.6 under Debian/unstable, 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.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - 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)



Messages sorted by: Reverse Date, Date, Thread, Author