OriginalBugID: 950 Bug
Run the following script.
# exec tclsh8.0 "$0"
exec mkfifo fifo
puts [exec cat <fifo >@stdout &]
Although there is an `&' at the end
of the exec-arguments, the exec does
If `&' is at the end of exec-args,
exec should always return soon, independent of input redirection.
There is a not-so-perfect workaround. The fifo can be opened with NONBLOCK and the handle to the opened fifo can be used to redirect input. However then the child-process sees a non-blocking
input channel, which is probably not what was intended.
Verified in 8.2.2 on Solaris.
-- 12/07/1999 hobbs