Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Strip upper-case version of EXE_SUFFIX#57

Merged
LPGhatguy merged 1 commit into
LPGhatguy:mainfrom
JohnnyMorganz:windows-exe-suffix
May 2, 2024
Merged

Strip upper-case version of EXE_SUFFIX#57
LPGhatguy merged 1 commit into
LPGhatguy:mainfrom
JohnnyMorganz:windows-exe-suffix

Conversation

@JohnnyMorganz

Copy link
Copy Markdown
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
Copy Markdown

@LPGhatguy

@LPGhatguy LPGhatguy merged commit 3bf0f49 into LPGhatguy:main May 2, 2024
@LPGhatguy

Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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