You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This looks like a duplicate of #1741, which was fixed by #1742.
Also note that I do not recommend using Snap to install ripgrep. It has resulted in all sorts of weird problems. (Searching the issue tracker should turn up prior discussions.)
What version of ripgrep are you using?
ripgrep 12.1.1
How did you install ripgrep?
Homebrew on macOS,
snap
on Ubuntu (latest version there is12.1.0
).What operating system are you using ripgrep on?
macOS 10.15.7
Ubuntu 18.04
Describe your bug.
rg
ignores stdin input provided via .NET 5.0 APIs (no other programs I'm aware of have this problem; e.g.,grep
works fine). Windows is not affected.What are the steps to reproduce the behavior?
PowerShell 7.1:
C# with .NET 5.0.101 SDK:
What is the actual behavior?
rg
behaves as if no stdin input had been specified and searches through the files in the current directory subtree.What is the expected behavior?
The output should be
hi there
, just like when you runecho 'hi there' | rg hi
from any POSIX-like shell.However, since PowerShell [Core] is built on .NET, this command does not work in PowerShell v7.1
The text was updated successfully, but these errors were encountered: