4 ms·
If you use aliases then its not nightmare. Use aliases, they are the same as on linux and even better (you can deduce them from the full name by standard). > s
by majkinetor 8y ago
If you use aliases then its not nightmare. Use aliases, they are the same as on linux and even better (you can deduce them from the full name by standard).
> short-circuit operator are completely broken.
What do you mean ? This kind of thing ?:
> 0 -and (Write-Host 2)
False
> 1 -and (Write-Host 2)
2
False
Not typically used in PowerShell, its bash paradigm IMO. There are objects here, so we throw error objects mostly and combine lines differently.
- lenkite 8y agoUnfortunately, outputting the boolean result makes "and" rather useless. See https://github.com/PowerShell/PowerShell/issues/3241 https://github.com/PowerShell/PowerShell/issues/3241