package stdune

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Stdune.Env_pathSource

Handle the PATH environment variable.

Sourceval var : Env.Var.t
Sourceval cons : ?var:Env.Var.t -> Env.t -> dir:Path.t -> Env.t

cons env ~dir adds dir to the start of the PATH variable in env

Sourceval path : Env.t -> Path.t list
Sourceval extend_env_concat_path : Env.t -> Env.t -> Env.t

extend_env_concat_path a b adds all variables from b to a overwriting any existing values of those variables in a except for PATH which is set to the concatenation of the PATH variables from a and b with the PATH entries from b preceding the PATH entries from a

OCaml

Innovation. Community. Security.