Closed mhutter closed 4 years ago
Looking into getShellPath
, I can see that it tries to read the users's shell from /etc/passwd
.
However, it seems that in recent MacOS versions, there are no entries in /etc/passwd
anymore, grep $USER /etc/passwd
returns no results.
Now, I noticed that the currently used shell is available in $SHELL
, so I can think of two possible PR's:
$SHELL
by default and only try to fetch the shell from /etc/passwd
if $SHELL
is not set$SHELL
as the fallback if user could not be found in /etc/passwd
Personally I think semantically option 1 would be correct... but WDYT @aaronjanse ?
I see this is already adressed in #56
Hey, thanks for the explanation! Fixed. Cheers to releasing code at 3 am :tada:
When I run 3mux, it immediately crashes with the following stack trace:
go1.14.2 iTerm2 v3.3.9 MacOS Catalina v10.15.4
Digging into this...