fix nu variable. tweak shells (#1558)

This commit is contained in:
Jonathan Turner
2020-04-06 10:30:54 -07:00
committed by GitHub
parent d0618b0b32
commit 183c8407de
3 changed files with 4 additions and 3 deletions

View File

@ -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)