On Thu, 2004-02-05 at 13:44, Vincenzo aka Nick Name wrote: > Yes, I forgot to say "recursively". I have an ocaml implementation but > it's prone to errors because of missing "canonicalization", so I did > not want to translate that in haskell for the same problem. Currently I > workarounded this all by forking "find", but it's prone to errors too > because I have no way to distinguish between newlines ending a file > name and newlines in the middle of a file name. I should put something > like "///" with "find -printf" at the end of each file name, and then > parse that, but it would really be preferable to code an haskell > library function equivalent to unix find.
If your "find" supports it (GNU find does, I don't know about others), you can use "find -print0" to NUL-terminate file names. Carl Witty _______________________________________________ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe
