Linux Mastering Development

Close file descriptor for coproc

I’m trying to learn how the coproc keyword works, for which I tried to write a script to give a coproc cat input, take its output and wait for it. Why doesn’t this script output "foo" and what would I have to change to make it correct? I’ve added my assumptions as comments: #!/bin/bash set […]