Skip to content

Remove .com logic from GetProgramExecutableName #1134

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

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Conversation

mrdomino
Copy link
Collaborator

@mrdomino mrdomino commented Apr 3, 2024

I can't imagine any way that appending ".com" would still be relevant from GetProgramExecutableName’s perspective. However, my lack of imagination may be mere ignorance; in that case, I’d suggest still removing the com parameter and having the code always take the com == 1 path.

The `com` parameter to `TryPath` was always 1, so there was no reason to
have it. This patch changes the logic to be as though `com` was 0, which
provides a possible answer to the TODO question -- the answer is no.

If we never care about appending `.com`, then `CopyWithCwd` doesn't need
to return anything beyond a boolean success value.
Copy link
Collaborator

@G4Vi G4Vi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems unnecessary to me too. Seeing no objections in the last few weeks, let's merge this.

@G4Vi G4Vi merged commit cec4c04 into jart:master Apr 24, 2024
@mrdomino mrdomino deleted the nocom branch April 24, 2024 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants