package bos
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Basic OS interaction for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
bos-0.3.0.tbz
sha512=77416442448462fb316b9b64ec213038153e82c6de030d511838a15bb13b80700598c1bcfae1c90ef766d4f42c9bf5dcf231eeff23709558246d7946962858cc
doc/CHANGES.html
v0.3.0 2026-04-22 La Forclaz (VS)
- Require OCaml >= 4.14.
- Move to one directory per library install convention.
boslibrary: drop dependency onrresult. But thebospackage still depends on it because of thebos.setuplibrary.- Fix sporadic deadlocks in
OS.Cmd.run_io(#105). Thanks to arvidj for the report and the fix. - Fix
OS.File.{read,write,with_ic,with_oc,write_lines}performing newline translation when the file isFpath.dash(#65). Thanks to Hezekiah M. Carty for the report. - Add
Cmd.if'and deprecateCmd.on. - Add
OS.Path.[exists_]realpath(#49). - Add
OS.Dir.expand_tilde(#96), Thanks to Favonia for the patch. - Add
OS.Dir.{config,data,cache,runtime,state}looked up according to XDG conventions (#93). Thanks to Favonia for suggesting. - Tweak
OS.Dir.user(#77, #96). On Windows with MSVC++ or MinGW, onlyUSERPROFILEis consulted. On Windows with Cygwin and other operating systems,HOMEis consulted first; previously,getpwnamwas consulted first. Thanks to Favonia for the patch. - Internal. More subtle uninterruptible
Unix.closefunction (#72). Thanks to Tom Ridge for reporting. - Internal. Remove a catch all exception handler in the implementation of a "
Unix.close_noerr" function.
v0.2.1 2021-10-04 Zagreb
- Require OCaml >= 4.08.
OS.Dir.createfix function result on existing files. It returned non-sensical results. The function now errors as it should be. Thanks to Léo Andrès for the report.OS.Dir.createfix function returningfalseinstead oftruewhen the directory is created with~path:false. Thanks to Léo Andrès for the report and patch.OS.File.readsupport for reading character devices and named pipes. Thanks to Rizo Isrof for the patch.
v0.2.0 2017-12-27 La Forclaz (VS)
- Built-in support for tool search. No longer relies on
which(unix) orwhere(Windows). OS.Cmd.{exist,must_exist}get an optional?searchargument. This can break existing programs.- Add
OS.Cmd.{find_tool,get_tool,resolve,search_path_dirs}. - Add
OS.File.is_executable. - Deprecate
Cmd.[get_]line_execin favor ofCmd.[get_]line_tool. - Fix
OS.Path.symlink ~force:truewhen the forced file is a symbolic link, the operation errored before. Thanks to Anil Madhavapeddy for the report.
v0.1.6 2017-05-04 La Forclaz (VS)
- Fix
OS.Dir.create. The documentation says it returnstrueif the directory was created andfalseotherwise. The implementation did the converse, the latter was adjusted to match the doc specification.
v0.1.5 2017-03-18 La Forclaz (VS)
- Fix
OS.Cmd.{err_file,out_file,to_file}. Files were not truncated onappend = false. OS.File.with_input, allow to specify the input buffer as an optional argument.
v0.1.4 2016-08-30 Zagreb
- Fix
OS.Path.foldon root and relative paths (#61). Thanks to Hezekiah M. Carty for the report and the help. - Fix
OS.File.writeon Windows (#59). Thanks to Hezekiah M. Carty for the report and the fix.
v0.1.3 2016-07-12 Cambridge (UK)
Cmd.dump, make representation cut and paste friendly. This affects logging made by the library.- Add
Cmd.of_values, converts arbitrary list of values to a corresponding argument list. - Fix
OS.Path.exists. Existing file path traversals returned and error rather thanfalse.
v0.1.2 2016-06-17 Cambridge (UK)
- Fix
OS.Filecreation mode from0o622to0o644(#55). - Fix semantics of dotfile handling in
OS.Path.{matches,query}.~dotfile:false(default) used to not return any path that had a dot segment, even if this was a constant segment without pattern variables. This is no longer the case,~dotfile:falsenow only prevents segments starting with a pattern variable to match against dot files, i.e. it controls the exploration of the file system made by the function. Thanks to David Kaloper for the discussion.
v0.1.1 2016-06-08 Cambridge (UK)
- Fix
OS.Cmdcombinators on Linux. Thanks to Andreas Hauptmann for the help (#51) - Fix
OS.Dir.deleteon Linux and Windows. Thanks to Andreas Hauptmann for the help (#50). - Fix
OS.Cmd.existson Linux. Thanks to Andreas Hauptmann and Petter Urkedal for the help (#52).
v0.1.0 2016-05-23 La Forclaz (VS)
First release.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page