'b' | select-String 'a' -Quiet
consider following
c:...\windowspowershell> 'a' | select-string 'a' -quiet
true
c:...\windowspowershell> 'b' | select-string 'a' -quiet
c:...\windowspowershell>
i expected second command return false.
while is counter intuitive, keep basic functionality of select-string. select-string returns *nothing* if there no matches. seems cods should updated not -quiet return false.
Windows Server > Windows PowerShell
Comments
Post a Comment