Function perform_assignment

Source
pub async fn perform_assignment(
    env: &mut Env,
    assign: &Assign,
    scope: Scope,
    export: bool,
    xtrace: Option<&mut XTrace>,
) -> Result<Option<ExitStatus>>
Expand description

Performs an assignment.

This function expands the value and then assigns it to the environment. The return value is the exit status of the last command substitution performed during the expansion of the assigned value, if any

If xtrace is Some instance of XTrace, the expanded assignment word is written to its assignments buffer.