val out = (“cat” #< new File("/etc/passwd")).lineStream_!
The above code will print the contents of the file but then appears to hang. The after print is never executed. One thought is that the command output stream is not closed but in this case the “cat” command is pretty simple and should close its output.
How can I get this stream to terminate?