Skip to content

Add aliases that Start-Job has#33

Merged
jshigetomi merged 1 commit intoPowerShell:mainfrom
God-damnit-all:patch-1
Feb 17, 2026
Merged

Add aliases that Start-Job has#33
jshigetomi merged 1 commit intoPowerShell:mainfrom
God-damnit-all:patch-1

Conversation

@God-damnit-all
Copy link
Contributor

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
Contributor 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.

@jshigetomi
Copy link
Collaborator

@God-damnit-all Thanks for the fix. I will also open an issue for -FilePath and -LiteralPath as well.

@jshigetomi jshigetomi merged commit 73800e7 into PowerShell:main Feb 17, 2026
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.

2 participants