MCPcopy Index your code
hub / github.com/docker/docker-agent / DetectUnixShell

Function DetectUnixShell

pkg/shellpath/shellpath.go:63–65  ·  view source on GitHub ↗

DetectUnixShell returns the user's shell from the SHELL environment variable, falling back to /bin/sh.

()

Source from the content-addressed store, hash-verified

61// DetectUnixShell returns the user's shell from the SHELL environment variable,
62// falling back to /bin/sh.
63func DetectUnixShell() string {
64 return defaultUnixShell()
65}
66
67// defaultUnixShell returns the user's shell from SHELL or /bin/sh.
68func defaultUnixShell() string {

Callers 1

newInteractiveShellCmdFunction · 0.92

Calls 1

defaultUnixShellFunction · 0.85

Tested by

no test coverage detected