-
Notifications
You must be signed in to change notification settings - Fork 285
add optional support to replace argv[0] (fixes #472) #627
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
base: main
Are you sure you want to change the base?
Conversation
|
@microsoft-github-policy-service agree |
|
Hey y’all, let me know if anything’s missing, but I’ve been using this for quite some time now day-to-day and haven’t seen any issues. |
6438f41 to
7fe4faa
Compare
f3e7b87 to
dc816f2
Compare
|
Hey folks, sorry for the churn today. I've been keeping this PR up-to-date with main for 1½ years now, while the code around what I've changed has been evolving. I've most recently done this because I was running package updates in my project that uses this support and needed to pull in the upgrades y'all have been making. Is there a chance we could evaluate this relatively simple PR and merge it? I think it's a feature that many folks would find useful. |
|
@deepak1556 could you review when you get a chance? |
Fixes #472.
With this, specifying the new property "argv0" in options will replace argv[0] with a custom string.
This is useful, for example, when starting a login shell:
If this property is omitted, the file parameter is used instead, which is identical to existing behavior.