mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-25 10:11:17 -03:00
Clean up path_get_cdpath and path_can_be_implicit_cd
This commit is contained in:
@@ -813,9 +813,9 @@ parse_execution_result_t parse_execution_context_t::populate_plain_process(
|
||||
if (args_from_cmd_expansion.empty() && !args.try_get_child<g::argument, 0>() &&
|
||||
!args.try_get_child<g::redirection, 0>()) {
|
||||
// Ok, no arguments or redirections; check to see if the command is a directory.
|
||||
wcstring implicit_cd_path;
|
||||
use_implicit_cd =
|
||||
path_can_be_implicit_cd(cmd, parser->vars().get_pwd_slash(), &implicit_cd_path);
|
||||
path_as_implicit_cd(cmd, parser->vars().get_pwd_slash(), parser->vars())
|
||||
.has_value();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user