@@ -63,7 +63,7 @@ while changing the settings of the optional keyword arguments:
6363 array or tuple of `"var"=>val` pairs. In order to modify (rather than replace) the
6464 existing environment, initialize `env` with `copy(ENV)` and then set `env["var"]=val` as
6565 desired. To add to an environment block within a `Cmd` object without replacing all
66- elements, use `addenv()` which will return a `Cmd` object with the updated environment.
66+ elements, use [ `addenv()`](@ref) which will return a `Cmd` object with the updated environment.
6767* `dir::AbstractString`: Specify a working directory for the command (instead
6868 of the current directory).
6969
@@ -236,9 +236,11 @@ Set environment variables to use when running the given `command`. `env` is eith
236236dictionary mapping strings to strings, an array of strings of the form `"var=val"`, or
237237zero or more `"var"=>val` pair arguments. In order to modify (rather than replace) the
238238existing environment, create `env` through `copy(ENV)` and then setting `env["var"]=val`
239- as desired, or use `addenv`.
239+ as desired, or use [ `addenv`](@ref) .
240240
241241The `dir` keyword argument can be used to specify a working directory for the command.
242+
243+ See also [`Cmd`](@ref), [`addenv`](@ref), [`ENV`](@ref), [`pwd`](@ref).
242244"""
243245setenv (cmd:: Cmd , env; dir= " " ) = Cmd (cmd; env= byteenv (env), dir= dir)
244246setenv (cmd:: Cmd , env:: Pair{<:AbstractString} ...; dir= " " ) =
@@ -248,10 +250,12 @@ setenv(cmd::Cmd; dir="") = Cmd(cmd; dir=dir)
248250"""
249251 addenv(command::Cmd, env...; inherit::Bool = true)
250252
251- Merge new environment mappings into the given `Cmd` object, returning a new `Cmd` object.
253+ Merge new environment mappings into the given [ `Cmd`](@ref) object, returning a new `Cmd` object.
252254Duplicate keys are replaced. If `command` does not contain any environment values set already,
253255it inherits the current environment at time of `addenv()` call if `inherit` is `true`.
254256
257+ See also [`Cmd`](@ref), [`setenv`](@ref), [`ENV`](@ref).
258+
255259!!! compat "Julia 1.6"
256260 This function requires Julia 1.6 or later.
257261"""
0 commit comments