Skip to main content

shell_command

Function shell_command 

Source
pub fn shell_command() -> Command
Expand description

Return a command configured to run the shell that Git would use.

On Windows, when shell() selected the Git for Windows sh.exe shim, this also requests POSIX mode explicitly. The shim delegates to bash.exe, which otherwise behaves as Bash rather than as sh. Other shells, including a caller-provided shell, must not receive this Bash-specific option.