shellDialectForPlatform
shellDialectForPlatform(
platform):ShellDialect
Defined in: command/shell-dialect.ts:74
Map an operating system identifier, as process.platform spells it, to the
shell dialect a command runs under by default there.
A platform does not determine a shell — it only names the default one, which
is what child_process.exec and its equivalents spawn. A caller that knows
it is driving a different shell passes that dialect instead.
Parameters
Section titled “Parameters”platform
Section titled “platform”string
The operating system identifier
Returns
Section titled “Returns”The dialect of that platform’s default shell