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

Re: precmd: write error: interrupted



On 04/25/2013 06:47 PM, Yuri D'Elia wrote:
2) Why "precmd() { { print "HELLO" } >&- 2>&-; } doesn't suppress the
error in this case?

Closest analogue I could find is:

% { { print >&2 } 2>&- } 2>/dev/null
zsh: write error

braces here don't help. A real subshell of course works, but it's prohibitive for precmd.



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