forked from extern/nushell
add $nothing and tests (#2995)
This commit is contained in:
@ -253,6 +253,11 @@ fn evaluate_reference(name: &str, ctx: &EvaluationContext, tag: Tag) -> Result<V
|
||||
)),
|
||||
},
|
||||
|
||||
"$nothing" => Ok(Value {
|
||||
value: UntaggedValue::nothing(),
|
||||
tag,
|
||||
}),
|
||||
|
||||
x => match ctx.scope.get_var(x) {
|
||||
Some(v) => Ok(v),
|
||||
None => Err(ShellError::labeled_error(
|
||||
|
Reference in New Issue
Block a user