1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-01-13 21:28:13 +02:00
ripgrep/crates
Roey Darwish Dror 020c5453a5
cli: fix stdin detection for Powershell on Unix
It seems that PowerShell uses sockets instead of FIFOs to redirect the
output between commands. So add `is_socket` to our `is_readable_stdin`
check.

This seems unlikely to cause problems and it probably more generally
correct than what we had before. In theory, it could cause problems if
it produces false positives, in which case, ripgrep will try to read
stdin when it should search the current working directory. (And this
usually winds up manifesting as ripgrep blocking forever.) But, if the
stdin handle reports itself as a socket, then it seems like we should
read it.

Fixes #1741, Closes #1742
2020-11-23 10:23:34 -05:00
..
cli cli: fix stdin detection for Powershell on Unix 2020-11-23 10:23:34 -05:00
core doc: sync --help output with man page 2020-11-15 15:27:23 -05:00
globset doc: update CI links in crate READMEs 2020-11-16 19:07:16 -05:00
grep doc: update CI links in crate READMEs 2020-11-16 19:07:16 -05:00
ignore ignore: provide underlying IO Error 2020-11-23 10:19:31 -05:00
matcher doc: update CI links in crate READMEs 2020-11-16 19:07:16 -05:00
pcre2 doc: update CI links in crate READMEs 2020-11-16 19:07:16 -05:00
printer doc: update CI links in crate READMEs 2020-11-16 19:07:16 -05:00
regex doc: update CI links in crate READMEs 2020-11-16 19:07:16 -05:00
searcher doc: update CI links in crate READMEs 2020-11-16 19:07:16 -05:00