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

[BUG] builtins with bad file descriptor can hang the shell



The following first 3 commands are OK. The 4th one hangs zsh,
with Ctrl-C and Ctrl-\ having no effect. This happens whether
MULTIOS is set or not.

zira% echo >&- > >(cat -n)
     1
zira% echo >&2 > >(cat -n)

     1
zira% /bin/echo >&3 > >(cat -n)
zsh: 3: bad file descriptor
zira% echo >&3 > >(cat -n)
zsh: 3: bad file descriptor

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