-
Notifications
You must be signed in to change notification settings - Fork 386
Remove useless part of login command #34
base: master
Are you sure you want to change the base?
Conversation
* VSCode WSL-remote fails: issue DamionGans#33 * `/bin/login` does not support environment variable setting via the command line when used with the `-f` flag that allows login to operate without requesting a password. Signed-off-by: Daniel Llewellyn <daniel@bowlhat.net>
This reduces the proliferation of recursion that can become difficult to understand or reason about. By using `/bin/sh` in as many places as possible we prevent the bash rcfile from kicking-in and performing the namespace stuff many times over. Signed-off-by: Daniel Llewellyn <daniel@bowlhat.net>
This seems to break things on my system. I can't login when I run this patch. I added a I'm running Ubuntu 20.04, updated from Ubuntu 18.04, if that helps any.
|
I don't fully understand how this all works, but perhaps it'd be more reliable to write out the PID to a pidfile in |
It seems the breakage is related to the second commit. If I apply only the |
Also side note - while this change did get VSCode working for me, the interop path stuff didn't seem to find its way into the shell that |
Fancy seeing you here @benjamincburns! Thanks for looking into this and thanks @diddledani for the fix. @DamionGans, I can confirm that this fix still works and is necessary (a year later). |
/bin/login
does not support environment variable setting via the command line when used with the-f
flag that allows login to operate without requesting a password.Signed-off-by: Daniel Llewellyn daniel@bowlhat.net