Date: Thu, 27 May 2004 14:38:23 -0500 From: John Goerzen Hi John, I tried this example straight from the docs: $ cashtop Objective Caml version 3.07+2 Camlp4 Parsing version 3.07+2 # open Cash;; # run_with_strings (fun () -> exec_path "ls" []);; Exception: Sys_error "Bad file descriptor". # Exception: Sys_error "Bad file descriptor". I can't make any of the run_with_* that I've tried work, whether in my programs or with cashtop. Ideas? (Cash 0.20) Not a lot with so little info (of course it works here). Would you mind sending me more OS details ? A backtrace would be very useful, and/or the result of trace/truss/strace -f ? That said, what comes to mind is that the behavior of close_{in,out} has changed in Pervasives over the last versions of Caml. I wrote some (too many) lines of code to make Cash.close_{in,out} work anyway. I see in the CVS log that there was a change related to that, some time after 3.07 (see the attached patch). You could try it, or even try the entire CVS version of Cash. Bruno.