Ticket #3890 (closed bug: fixed)
runghc sometimes won't allow redirecting of stdout/stderr
| Reported by: | simonmic | Owned by: | simonmar |
|---|---|---|---|
| Priority: | high | Milestone: | 6.12.3 |
| Component: | Runtime System | Version: | 6.10.4 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description (last modified by igloo) (diff)
See attached test.hs. Here's stdout working normally:
$ runhaskell test.hs | cat output $
But after uncommenting either the cmdArgs line or the defaultMainWithArgs line, stdout can't be captured:
$ runhaskell test.hs | cat $
It does appear on the console if you don't redirect though. The same goes for stderr. This prevents me testing uncompiled scripts with shelltestrunner. I'm on mac os 10.5.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

