r/PowerShell • u/Atmaks • Jan 06 '26
Question Piping to Select-String does not work
I'm trying to use the following command to diagnose some dependency issues with my nascent C++ project:
vcpkg depend-info qtbase | Select-String -Pattern "font"
This does literally nothing and I still see the entire output of vcpkg. I also tried piping to rg.exe (RipGrep) and the result is the same. AI failed me so here I come. Please at least point me in the right direction. Hate Powershell. Thanks.
0
Upvotes
View all comments
Show parent comment
1
u/Atmaks Jan 07 '26
This did the trick, thank you. I have encountered a similar issue before on Linux (something to do with Docker), but somehow I didnt think to apply the same here. I though Powershell would be fancier as usual.
Now that I think about it, why does it even write to stderr in this particular case?