Skip to content
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

Strip upper-case version of EXE_SUFFIX #57

Merged
merged 1 commit into from
May 2, 2024

Conversation

JohnnyMorganz
Copy link
Contributor

On windows, file paths are case insensitive, so binary.EXE should be treated just like binary.exe. Interestingly, command prompt will return a lowercase extension as the current exe name, whilst PowerShell does not. This fixes the case for PowerShell

Fixes #54

On windows, file paths are case insensitive, so `binary.EXE` should be treated just like `binary.exe`. Interestingly, command prompt will return a lowercase extension as the current exe name, whilst PowerShell does not.

Fixes LPGhatguy#54
@jackTabsCode
Copy link

@LPGhatguy

@LPGhatguy LPGhatguy merged commit 3bf0f49 into LPGhatguy:main May 2, 2024
3 checks passed
@LPGhatguy
Copy link
Owner

I think the "right" way to solve this is with a strip_suffix_case_insensitive type function, but this is a great fix for a real problem now.

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.

Weird behaviour depending on the capitalisation of executable suffix
3 participants