Pash-Project / Pash

An Open Source reimplementation of Windows PowerShell, for Mono.
https://groups.google.com/group/pash-project
BSD 3-Clause "New" or "Revised" License
514 stars 54 forks source link

No automatic variables for $true and $false #389

Open ArsenShnurkov opened 9 years ago

ArsenShnurkov commented 9 years ago

I am unable to test property for boolean values:

PASH /> ls | Where-Object {$_.PSIsContainer -eq $false}  
PASH /> ls | Where-Object {$_.PSIsContainer -eq $true}   
PASH />  
sburnicki commented 9 years ago

Thanks for the report. What you actually discovered is a bug in the class CmdletProvider where properties are added to a PSObject.Properties, but not to PSObject.Members which is more a misconception of PSObject. Long story short: Thanks for reporting, I will fix the issue you detected.

Note that the actual automatic variables work in Pash. Check this for example by just printing them: $true.