Archive for category Bug

PowerShell Version 3 if..else bug


Consider the following from PowerShell’s excellent help: Get-Help about_If 001002003004005006007008 if ($a -gt 2) {    Write-Host “The value $a is greater than 2.”}else{    Write-Host “The value $a is less than or equal to 2, is not created or is not initialized.” } If you modify that example to tighten it up a bit, and make it look better you can cause the […]

6 Comments