mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
in CCUnix, use Unix.environment as the default environment
This commit is contained in:
parent
d2a02793e2
commit
78fb6c53f2
1 changed files with 2 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ type call_result =
|
|||
|
||||
let kbprintf' buf fmt k = Printf.kbprintf k buf fmt
|
||||
|
||||
let call ?(bufsize=2048) ?(stdin=`Str "") ?(env=[||]) cmd =
|
||||
let call ?(bufsize=2048) ?(stdin=`Str "") ?(env=Unix.environment()) cmd =
|
||||
(* render the command *)
|
||||
let buf = Buffer.create 256 in
|
||||
kbprintf' buf cmd
|
||||
|
|
@ -125,7 +125,7 @@ type async_call_result =
|
|||
wait:Unix.process_status; (* block until the process ends *)
|
||||
>
|
||||
|
||||
let async_call ?(env=[||]) cmd =
|
||||
let async_call ?(env=Unix.environment()) cmd =
|
||||
(* render the command *)
|
||||
let buf = Buffer.create 256 in
|
||||
kbprintf' buf cmd
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue