Skip to content
This repository has been archived by the owner on Feb 4, 2019. It is now read-only.

No automatic variables for $true and $false #389

Open
ArsenShnurkov opened this issue Jun 22, 2015 · 1 comment
Open

No automatic variables for $true and $false #389

ArsenShnurkov opened this issue Jun 22, 2015 · 1 comment
Assignees
Labels

Comments

@ArsenShnurkov
Copy link

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
Copy link
Member

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.

@sburnicki sburnicki added the bug label Jun 22, 2015
@sburnicki sburnicki self-assigned this Jun 22, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants