Skip to content

Match executable names case-insensitively#53

Draft
caomengxuan666 wants to merge 1 commit into
microsoft:mainfrom
caomengxuan666:winuxcmd/case-insensitive-dispatch
Draft

Match executable names case-insensitively#53
caomengxuan666 wants to merge 1 commit into
microsoft:mainfrom
caomengxuan666:winuxcmd/case-insensitive-dispatch

Conversation

@caomengxuan666
Copy link
Copy Markdown
Contributor

@caomengxuan666 caomengxuan666 commented Jun 4, 2026

Fixes #52.

Windows executable names are case-insensitive, but the multicall dispatcher was using the invoked file stem verbatim. This normalizes the executable name before matching it against the utility map, so names like False.exe dispatch to false.

Verified with:

  • cargo test --target x86_64-pc-windows-msvc
  • copied the built binary to False.exe and LS.exe; False.exe exits like false, and LS.exe --version dispatches to ls.

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.

Executable name is case sensitive when calling -> unknown program

1 participant