Compare e.g.
$ cat <<< "input"
input
$ host-spawn cat <<< "input"
input
input
<hangs>
So first, I'm not sure where the double-printing comes from. Second, cat hangs, seemingly indicating that its stdin is not closed.
I'm guessing this is related to the various stdin tricks host-spawn plays. I do notice that it behaves as expected with -no-pty, so likely related:
$ host-spawn -no-pty cat <<< "input"
input
Compare e.g.
So first, I'm not sure where the double-printing comes from. Second,
cathangs, seemingly indicating that its stdin is not closed.I'm guessing this is related to the various stdin tricks host-spawn plays. I do notice that it behaves as expected with
-no-pty, so likely related: