Skip to main content

in_dir

Function in_dir 

Source
pub(super) fn in_dir(
    command: &str,
    cwd: &str,
    family: ShellFamily,
) -> Result<String>
Expand description

command run in cwd: the drawer is a long-lived shell, so run’s cwd is a cd in front of the command (cmd’s /d changes the drive too). The path is quoted so the shell takes it literally (no variables, globs or command syntax), except a leading ~, which still means home.