diff --git a/CHANGELOG.md b/CHANGELOG.md index d102b0d..af9bbb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ Bug fixes: * [BUG #1277](https://github.com/BurntSushi/ripgrep/issues/1277): Document cygwin path translation behavior in the FAQ. +* [BUG #1741](https://github.com/BurntSushi/ripgrep/issues/1741): + Fix stdin detection when using PowerShell in UNIX environments. 12.1.1 (2020-05-29) diff --git a/crates/cli/src/lib.rs b/crates/cli/src/lib.rs index 452ea14..9fe1cf3 100644 --- a/crates/cli/src/lib.rs +++ b/crates/cli/src/lib.rs @@ -210,7 +210,7 @@ pub fn is_readable_stdin() -> bool { Err(_) => return false, Ok(md) => md.file_type(), }; - ft.is_file() || ft.is_fifo() + ft.is_file() || ft.is_fifo() || ft.is_socket() } #[cfg(windows)]