| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
The && and || operators allow statements for both operands in bash. Why don't we do the same in PowerShell? |
Sorry, something went wrong.
|
Discussed this offline with Dongbo Wang (@daxian-dbw). We've decided to get rid of the subordinate statements and move assignment up to the whole chain (so no $x = cmd1 && $y = cmd2). I'll try to rework this today or tomorrow |
Sorry, something went wrong.
|
Rob Holt (@rjmholt) Can you explain the reasoning in this PR thread? |
Sorry, something went wrong.
I've discussed again with Dongbo Wang (@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 |
Sorry, something went wrong.
|
Please see PowerShell/PowerShell-RFC#192 |
Sorry, something went wrong.
|
Excellent, thanks |
Sorry, something went wrong.
|
🎉 |
Sorry, something went wrong.
|
🎉🎉🎉 Nice! |
Sorry, something went wrong.
|
This is awesome! Looking forward to having a look in PS7 preview 5! |
Sorry, something went wrong.
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
| Back | FazBrowse Home | New Git URL |
This PR is specified by PowerShell/PowerShell-RFC#192
PR Summary
Resolves #3241.
Implements && and ||.
A statement like cmd1 && cmd2 should behave like cmd1; if ($?) { cmd2 }.
After discussion with the @PowerShell/powershell-committee, this feature has the following charateristics:
PR Checklist