mirror of
https://github.com/nushell/nushell
synced 2025-01-14 14:14:13 +00:00
Allows aliases in use lists (#5150)
This commit is contained in:
parent
58f395989a
commit
4fd73ef54a
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ https://www.nushell.sh/book/thinking_in_nushell.html#parsing-and-evaluation-are-
|
|||
for (name, span) in names {
|
||||
if let Some(id) = overlay.get_env_var_id(name) {
|
||||
output.push((name.clone(), id));
|
||||
} else if !overlay.has_decl(name) {
|
||||
} else if !overlay.has_decl(name) && !overlay.has_alias(name) {
|
||||
return Err(ShellError::EnvVarNotFoundAtRuntime(
|
||||
String::from_utf8_lossy(name).into(),
|
||||
*span,
|
||||
|
|
Loading…
Reference in a new issue