Bug in ghc-502 with system "cmd > tmp"?

Bernd Holzmüller holzmueller at ics-ag.de
Mon Oct 15 02:29:57 EDT 2001


Hi all,

I have the following problem on Windows NT using ghc 5.02 from a cygwin
bash-shell. Calls to System.system of the form

   system $ "grep -E "  ++ show str ++ " " ++ file ++ " > tmp"

do not work because of the ">" (ditto with "<"). Execution yields:

   grep: >: No such file or directory

Hugs works fine here. Any solution/workaround?


Thanks,

Bernd Holzmüller




More information about the Glasgow-haskell-bugs mailing list