Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

UseCorrectCasing: Fix wildcard lookups for command lookup and do not append .exe for applications on Windows#1210

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@bergmeister
Copy link
Collaborator

@bergmeisterbergmeister commentedApr 6, 2019
edited
Loading

PR Summary

UseCorrectCasing: Fix command lookups using wildcards, e.g. ? would've wrongly returned ForEach-Object and do not append .exe to binaries on Windows

PR Checklist

… correct application names to end in .exe on Windows
@mkht
Copy link

mkht commentedApr 7, 2019
edited
Loading

@bergmeister Thanks for fixing issue.

In very rare cases, I think the following codes may still produce unexpected results.

>Invoke-Formatter'?et-Content $file'Get-Content$file>Invoke-Formatter'Get-* $file'Get-AppPackage$file

How about we consider using[WildcardPattern]::Escape() in theGet-Command ?

@bergmeisterbergmeister changed the titleUseCorrectCasing: Fix special case of ? for command lookup and do not in .exe on WindowsUseCorrectCasing: Fix special case of ? for command lookup and do not append .exe for applications on WindowsApr 7, 2019
@bergmeisterbergmeister changed the titleUseCorrectCasing: Fix special case of ? for command lookup and do not append .exe for applications on WindowsUseCorrectCasing: Fix wildcard lookups for command lookup and do not append .exe for applications on WindowsApr 7, 2019
@bergmeister
Copy link
CollaboratorAuthor

@mkht Thanks for the useful suggestion, I did not know that such an API existed, I applied it

Co-Authored-By: bergmeister <c.bergmeister@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@rjmholtrjmholtrjmholt approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Alias "?" is changed to "%" by Invoke-Formatter

3 participants

@bergmeister@mkht@rjmholt

[8]ページ先頭

©2009-2025 Movatter.jp