Shell-Guess
view release on metacpan or search on metacpan
lib/Shell/Guess.pm view on Meta::CPAN
{ return __PACKAGE__->cmd_shell }
}
return __PACKAGE__->dcl_shell if $^O eq 'VMS';
return __PACKAGE__->command_shell if $^O eq 'dos';
my $username = shift || $ENV{USER} || $ENV{USERNAME} || $ENV{LOGNAME};
unless(defined $username)
{
$username = eval { getpwuid $< };
}
if($^O eq 'darwin')
{
my $command = `dscl . -read /Users/$username UserShell`;
$shell = _unixy_shells($command);
return $shell if defined $shell;
}
eval {
( run in 0.333 second using v1.01-cache-2.11-cpan-8d75d55dd25 )