mirror of
https://github.com/nushell/nushell
synced 2024-11-15 01:17:07 +00: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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue