Skip to content

Commit

Permalink
Bump rustyline and add unalias test (#3935)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiajt committed Aug 17, 2021
1 parent 9bd4084 commit ead4029
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 11 deletions.
32 changes: 23 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/nu-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ indexmap ="1.6.1"
log = "0.4.14"
pretty_env_logger = "0.4.0"
strip-ansi-escapes = "0.1.0"
rustyline = { version="8.1.0", optional=true }
rustyline = { version="9.0.0", optional=true }
ctrlc = { version="3.1.7", optional=true }
shadow-rs = { version="0.6", default-features=false, optional=true }
serde = { version="1.0.123", features=["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/nu-command/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ rayon = "1.5.0"
regex = "1.4.3"
roxmltree = "0.14.0"
rust-embed = "5.9.0"
rustyline = { version="8.1.0", optional=true }
rustyline = { version="9.0.0", optional=true }
serde = { version="1.0.123", features=["derive"] }
serde_bytes = "0.11.5"
serde_ini = "0.2.0"
Expand Down
13 changes: 13 additions & 0 deletions tests/shell/pipeline/commands/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,19 @@ fn unalias_shadowing() {
assert_eq!(actual.out, "");
}

#[test]
fn unalias_hides_alias() {
let actual = nu!(cwd: ".", pipeline(
r#"alias ll = ls -l
ll
unalias ll
ll
"#)
);

assert!(actual.err.contains("not found"));
}

mod parse {
use nu_test_support::nu;

Expand Down

0 comments on commit ead4029

Please sign in to comment.