dbuenzli / bos

Basic OS interaction for OCaml
http://erratique.ch/software/bos
ISC License
64 stars 16 forks source link

OS.Cmd.{err_file,out_file,to_file} do not truncate the destination file. #68

Closed dbuenzli closed 7 years ago

dbuenzli commented 7 years ago

when [append] is [false] (default). We are missing an O_TRUNC here if we don't append.

This is the source of this bug in topkghttps://github.com/dbuenzli/topkg/issues/107