-
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
Setting argv0 #9
Comments
I looked at a bunch of shells, and they all had By default, I think I was trying to have wslbridge match what the "Bash on Ubuntu" shortcut does, which invokes I didn't see any option (e.g. with mintty or ssh) that lets me configure an arbitrary argv0 with a dash. I did notice that mintty can be invoked with just a Comments / questions:
|
I checked a newer WSL installation, and now I see a |
It probably involves |
I tried the trivial thing of adding Maybe I did it wrong? How do I pass additional arguments to the program started by wslbridge? Here's my shortcut:
I see I also need to research how |
argv0 would still be
I just installed wsltty 0.7.6, and it looks like it created three shortcuts -- one labeled It occured to me that mintty's behavior makes more sense for mintty, because mintty is a Cygwin program that inherits the Cygwin environment. wslbridge, on the other hand, is more like ssh in that its Cygwin environment is discarded in favor of a new WSL environment. |
See also my response mintty/wsltty#37 (comment). |
I'll test the 3rd shortcut with |
Note that the standard Bash on Ubuntu shortcut does not start a login shell either. We might try whether, if the wrapper is activated with a $0 of "-bash", it propagates that to WSL. |
Could there be command line flag added for setting argv0?
Here's the problem: when shells start, they check argv0 for a leading dash, to know if they are a login shell, in which case they'll source user profile files (~/.profile, for example).
The unix login program will typically start a user shell (let's use bash as an example) like this:
Cygwin's mintty has this feature, for example. The result without providing argv0 is mintty/wsltty#37.
The text was updated successfully, but these errors were encountered: