-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Pipeline chain operators #9849
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
Pipeline chain operators #9849
Uh oh!
There was an error while loading. < 8000 a class="Link--inTextBlock" data-turbo="false" href="" aria-label="Please reload this page">Please reload this page.
Conversation
|
The |
|
Discussed this offline with @daxian-dbw. We've decided to get rid of the subordinate statements and move assignment up to the whole chain (so no |
|
@rjmholt Can you explain the reasoning in this PR thread? |
I've discussed again with @daxian-dbw and we agreed this is now best served by an RFC. When that RFC is accepted, I'll make the desired changes in this branch |
|
Please see PowerShell/PowerShell-RFC#192 |
|
Excellent, thanks |
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
Outdated
Show resolved
Hide resolved
This reverts commit 3e374f9.
|
🎉 |
|
🎉🎉🎉 Nice! |
|
This is awesome! Looking forward to having a look in PS7 preview 5! |
The `&&` syntax is not supported in PowerShell. See PowerShell/PowerShell#9849.
The `&&` syntax is not supported in PowerShell (yet). See PowerShell/PowerShell#9849.
PowerShell can't be relied upon to have `&&`. PowerShell/PowerShell#9849
PowerShell can't be relied upon to have `&&`. PowerShell/PowerShell#9849
This PR is specified by PowerShell/PowerShell-RFC#192
PR Summary
Resolves #3241.
Implements
&&and||.A statement like
cmd1 && cmd2should behave likecmd1; if ($?) { cmd2 }.After discussion with the @PowerShell/powershell-committee, this feature has the following charateristics:
cmd1 && cmd2behaves likecmd1; if ($?) { cmd2 }cmd1 || cmd2behaves likecmd1; if (-not $?) { cmd2 }cmd1 && cmd2 && cmd3is left associative:[cmd1 && cmd2] && cmd3cmd1 && $(break)). These were taken out due to the inconsitencies they posed at a grammatical, data structure and semantic level.PSPipelineChainOperatorsexperimental featurePR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.PSPipelineChainOperators