v2 bug: test-path returns true for pure whitespace path.
Votes from Connect: 10
Original Date Submitted: 5/22/2010 3:29:42 AM
Site Name: PowerShell
Feedback ID: 560761
Frequency: Always Happens
Regression: I don't know if this issue existed previously
Calling test-path " " returns $true. I would expect $false unless a file named " " really did exist.
Product Studio item created by Connect Synchronizer due to creation of feedback ID 560761 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=560761).
given there is no file or folder named " " in the root of C:\
ps c:> test-path " "
ps> test-path " "
Internal BugId: 2549