mirror of
https://github.com/nushell/nushell.git
synced 2024-12-23 23:49:44 +01:00
Make autocd return exit code 0 (#12337)
# Description resolves #11159. ``` ~/CodingProjects/nushell> ^false ~/CodingProjects/nushell> $env.LAST_EXIT_CODE 1 ~/CodingProjects/nushell> ^false ~/CodingProjects/nushell> ./crates/ ~/CodingProjects/nushell/crates> $env.LAST_EXIT_CODE 0 ``` # User-Facing Changes autocd now sets exit code to 0.
This commit is contained in:
parent
251599c507
commit
9444020f26
@ -810,6 +810,7 @@ fn do_auto_cd(
|
||||
"NUSHELL_LAST_SHELL".into(),
|
||||
Value::int(last_shell as i64, span),
|
||||
);
|
||||
stack.add_env_var("LAST_EXIT_CODE".into(), Value::int(0, Span::unknown()));
|
||||
}
|
||||
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user