nu_engine::env

Function path_str

Source
pub fn path_str(
    engine_state: &EngineState,
    stack: &Stack,
    span: Span,
) -> Result<String, ShellError>
Expand description

Get the contents of path environment variable as a list of strings

On non-Windows: It will fetch PATH On Windows: It will try to fetch Path first but if not present, try PATH