package shexp
Process library and s-expression based shell
Install
Dune Dependency
Authors
Maintainers
Sources
shexp-v0.12.0.tar.gz
sha256=b2ca616e5384d517a3bef878ed2fd364b2c51993f7f57f223954422e2eea0e1d
md5=d48e292eaa2f7e4f66fa5381eddc86a9
doc/shexp.process/Shexp_process/Context/index.html
Module Shexp_process.Context
Execution contexts
Execution contexts
An evaluation context represent all the information maintained by shexp_process in order to evaluate a process description.
This consists of:
- stdin, stdout, stderr
- the current working directory
- the unix environment variables
module Working_dir : sig ... end
val create :
?stdin:Unix.file_descr ->
?stdout:Unix.file_descr ->
?stderr:Unix.file_descr ->
?cwd:Working_dir.t ->
?unix_env:(string * string) list ->
unit ->
t
Creates a new execution context. Non-specified fields are captured from the environment of current running program.
val dispose : t -> unit
In order to safely maintain several working directories inside the same system process, shexp keeps a file descriptor of the working directory of the context. You need to dispose of an execution context in order to close this file descriptor.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>