In local.glasgow-haskell-bugs, you wrote: > I've stripped down my program to produce an example. In the process, the > problem disappeard a few times. I hope it shows up on your machine. The > attached files reproduce it on my machine, but the exact results vary > from run to run.
There's no bug in the libraries: The data is read lazily by 'getContents', then you invoke 'forkProcess'. >From this moment on, you should have two (heavy-weight) processes competing for input from the same source (stdin). Further proof might be that in making 'getContents' strict by inserting a 'print' statement to force evaluation now returns correct results: .. qinh <- getContents let pfade = zeilen qinh print pfade -- FORCE EVALUATION mapM_ (\pfad -> run "/bin/echo" [pfad]) pfade .. Notice that a 'hSetBuffering stdin NoBuffering' before 'getContents' doesn't seem to be sufficient, either. Regards, Volker -- Wonderful \hbox (0.80312pt too nice) in paragraph at lines 16--18 Volker Stolz * [EMAIL PROTECTED] Please use PGP or S/MIME for correspondence! _______________________________________________ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs