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

Case sensitivity not present on linux #418

Closed SRGOM closed 8 years ago

SRGOM commented 8 years ago

I have the following dir structure

. .. Downloads

However, when I do

(dir|where {$_.Name -eq "Downloads"}).Exists 
(dir|where {$_.Name -eq "downloads"}).Exists 

Both return True. The second should return false. I'm on the latest github code:

Linux XYZ 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:30:01 UTC 2014 i686 i686 i686 GNU/Linux

ygra commented 8 years ago

(dir|where {$.Name -eq "Downloads"}).Exists (dir|where {$.Name -eq "downloads"}).Exists

Note that -eq is case-_in_sensitive. The case-sensitive operator is -ceq. So I'd say what you're experiencing is expected and correct.