forked from extern/nushell
Allow aliases to expand and ignore painting outside of lines (#3492)
This commit is contained in:
@ -306,6 +306,18 @@ fn run_custom_command_with_empty_rest() {
|
||||
assert_eq!(actual.err, r#""#);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn alias_a_load_env() {
|
||||
let actual = nu!(
|
||||
cwd: ".",
|
||||
r#"
|
||||
def activate-helper [] { [[name, value]; [BOB, SAM]] }; alias activate = load-env (activate-helper); activate; $nu.env.BOB
|
||||
"#
|
||||
);
|
||||
|
||||
assert_eq!(actual.out, r#"SAM"#);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn let_variable() {
|
||||
let actual = nu!(
|
||||
|
Reference in New Issue
Block a user