mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 22:47:43 +02:00
fix nu variable. tweak shells (#1558)
This commit is contained in:
@ -164,7 +164,7 @@ fn evaluate_reference(
|
||||
match name {
|
||||
hir::Variable::It(_) => Ok(scope.it.value.clone().into_value(tag)),
|
||||
hir::Variable::Other(_, span) => match span.slice(source) {
|
||||
x if x == "nu" => crate::evaluate::variables::nu(tag),
|
||||
x if x == "$nu" => crate::evaluate::variables::nu(tag),
|
||||
x => Ok(scope
|
||||
.vars
|
||||
.get(x)
|
||||
|
Reference in New Issue
Block a user