pub fn shell() -> &'static OsStr
Expand description
Return the shell that Git would use, the shell to execute commands from.
On Windows, this is the full path to sh.exe
bundled with Git, and on
Unix it’s /bin/sh
as posix compatible shell.
If the bundled shell on Windows cannot be found, sh
is returned as the name of a shell
as it could possibly be found in PATH
.
Note that the returned path might not be a path on disk.