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

Add aliases that Start-Job has #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

God-damnit-all
Copy link

PR Summary

Start-Job has a couple aliases that are missing from Start-ThreadJob.

-ScriptBlock receives the -Command alias
-ArgumentList receives the -Args alias

Note that, in particular, the -Args alias is present in almost every built-in function that has an -ArgumentList parameter.

PR Context

Consistency.

`-ScriptBlock` receives the `-Command` alias
`-ArgumentList` receives the `-Args` alias
@God-damnit-all
Copy link
Author

God-damnit-all commented Jan 19, 2024

As an aside, I notice that Start-Job has both a -FilePath parameter and a -LiteralPath parameter.

Because PowerShell is now cross-platform, characters that are traditionally used as wildcards may be present in a filename on non-Windows systems. It would be good to add -LiteralPath to Start-ThreadJob as well, along with its -PSPath & -LP aliases.

While one could just make it so -FilePath interprets paths literally since wildcard characters aren't supported anyway, Start-Job also rejects paths with wildcards when using -FilePath (but not with -LiteralPath), so that behavior should probably be mirrored.

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.

1 participant