mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 03:34:58 +02:00
# Description Closes https://github.com/nushell/nushell/issues/7346 # Tests + Formatting ``` > mut a = [1 2 3] > $a ++= [4 5 6] > $a [1 2 3 4 5 6] ```
This commit is contained in:
@ -474,6 +474,10 @@ pub fn eval_expression(
|
||||
let lhs = eval_expression(engine_state, stack, lhs)?;
|
||||
lhs.div(op_span, &rhs, op_span)?
|
||||
}
|
||||
Assignment::AppendAssign => {
|
||||
let lhs = eval_expression(engine_state, stack, lhs)?;
|
||||
lhs.append(op_span, &rhs, op_span)?
|
||||
}
|
||||
};
|
||||
|
||||
match &lhs.expr {
|
||||
|
Reference in New Issue
Block a user