-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login shell option #18
Comments
I think wslbridge should follow ssh convention and, when a command isn't specified, add a I suppose I can also add a wslbridge option that makes the |
Oh, |
Ah, no, not included yet. Support would be good. Could as well be triggered by supplying argv[0] like "-wslbridge" to wslbridge.exe itself. Or |
@mintty I have a version of this prototyped at https://github.com/rprichard/wslbridge/tree/login-mode. There are still some TODO comments, but it's mostly done. The dash-prefixed behavior can be explicitly requested by passing |
Sounds great! But what if you want to invoke the default distribution without login mode? I'd rather decouple the two issues. Will take a look. |
I'd be OK with having multiple options: I'd expect wslbridge to default to starting a login shell, because ssh also does that (as does starting WSL |
Bit confused I am; if you want to make login mode the default, you wouldn't need a |
... or we might want to |
@rprichard, I'm trying to build wsltty with the latest commit from branch login-shell, but it doesn't work as you also modified the backend. Can you make a release please? |
Yes, I'll make a release when I have time. Probably before the end of the year. |
Or let's check this first: |
IIRC, this commit changes the protocol the frontend and backend use, so they both need to be recompiled. I don't see why you can't recompile the backend. You could run |
I could build wslbridge-backend in OpenSUSE, and it works well. |
I guess? I'm confused by the request, though, because I'm just following the existing Unix (and WSL) conventions. |
My proposal is to behave like typical shells:
|
What I see in your |
Fixed by 34ec0e4 |
People keep requesting wsltty control over login shell behaviour.
Could wslbridge add an option, like
-
or-l
?Which would be propagated to argv[0] being stripped to its basename and prepended with a
-
.This relates to previous discussions in #9, mintty/wsltty#56, (#14, mintty/wsltty#37).
The text was updated successfully, but these errors were encountered: