package stdune

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

Handle the PATH environment variable.

val var : Env.Var.t
val 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

val path : Env.t -> Path.t list
val 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