mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Make semicolon works better for internal commands (#6643)
* make semicolon works with some internal command like do * refactor, make consume external result logic out of eval_external * update comment
This commit is contained in:
@ -11,3 +11,15 @@ fn capture_errors_works() {
|
||||
|
||||
assert_eq!(actual.out, "error");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn do_with_semicolon_break_on_failed_external() {
|
||||
let actual = nu!(
|
||||
cwd: ".", pipeline(
|
||||
r#"
|
||||
do { nu --not_exist_flag }; `text`
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, "");
|
||||
}
|
||||
|
Reference in New Issue
Block a user