Skip to content

Start-Job should mention the v6+ background operator #4965

Closed

Description

PowerShell Core supports the background operator: postpositional & as a concise, Bash-inspired alternative to Start-Job calls; e.g.:

('hi' &) | Receive-Job -Wait -AutoRemove

is short for:

Start-Job { 'hi' } | Receive-Job -Wait -AutoRemove

To make the & syntax more discoverable, it should be mentioned in the Start-Job topic as well (it already is mentioned in about_Jobs).


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. added a commit that references this issue on Oct 23, 2019
    8de38f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-coreArea - Microsoft.PowerShell.Core module

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions