Looks very nice! Do you think this would be a good route towards getting ocamlbuild working seamlessly on windows? martin On Mon, May 23, 2016 at 2:01 PM, Daniel Bünzli wrote: > Hello, > > I'd like to announce the first release of bos: > > ``` > Bos provides support for basic and robust interaction with the operating > system in OCaml. It has functions to access the process environment, parse > command line arguments, interact with the file system and run command line > programs. > > Bos works equally well on POSIX and Windows operating systems. > > Bos depends on Rresult, Astring, Fmt, Fpath, Logs and the OCaml Unix > library. > It is distributed under the ISC license. > ``` > > Homepage: http://erratique.ch/software/bos > API docs: http://erratique.ch/software/bos/doc/ > > Bos can be seen as improved Sys module for programs and scripts that have > light OS interaction requirements. Inspired by the excellent work of scsh > [0], it seems this path has been pursued more than once in OCaml for > example with cash [1] or shcaml [2]. > > Bos however has a slightly different take on this. It does not try to > recover the shell's terseness or processing model but rather tries to > overcome the shell's brittleness in face of errors, error reporting and > insane quoting conventions. The difference between a script and a program > is an artificial one and bos tries to encourage you to write programs that > do not fail obscurely and evolve gracefully from a quick, small one (a.k.a > "script") to a complex one (a.k.a. "program") while keeping good usability > for the end user who is the one who eventually gets processing failures in > the face. > > This first version number is intentionally low, as I don't see bos as > fully finished at the moment. Some interfaces could be tweaked and other > added in the future (feedback and discussion on the issue tracker is > welcome). I did however already write a few programs/scripts that make use > of most of the features provided by the library, so the low number should > not be interpreted as "alpha" quality software. What is provided here > should work as described and if it doesn't, scream on the issue tracker. > > Best, > > Daniel > > > [0] https://scsh.net/ > [1] http://pauillac.inria.fr/cash/ > [2] http://users.eecs.northwestern.edu/~jesse/code/shcaml/ > > > > > > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >