zsh, zpty: How to read the output of a process after it has exited?
0
votes
0
answers
454
views
Start some command with
zpty
:
zpty -d x ; zpty x 'echo hi' ; sleep 1
How do I read its output now that it has exited?
zpty -r x
Returns 2, and this behavior seems expected per the manpage.
Asked by HappyFace
(1694 rep)
Apr 12, 2021, 06:26 PM