diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e11a8ea6..055ce132e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ TBD === Unreleased changes. Release notes have not yet been written. +Feature enhancements: + +* Added or improved file type filtering for Fuchsia + Bug fixes: * [BUG #1891](https://github.com/BurntSushi/ripgrep/issues/1891): @@ -10,6 +14,8 @@ Bug fixes: Disable mmap searching in all non-64-bit environments. * [BUG #2236](https://github.com/BurntSushi/ripgrep/issues/2236): Fix gitignore parsing bug where a trailing `\/` resulted in an error. +* [BUG #2523](https://github.com/BurntSushi/ripgrep/issues/2523): + Make executable searching take `.com` into account on Windows. 13.0.0 (2021-06-12) diff --git a/crates/cli/src/decompress.rs b/crates/cli/src/decompress.rs index 765087097..f2f2a6747 100644 --- a/crates/cli/src/decompress.rs +++ b/crates/cli/src/decompress.rs @@ -455,9 +455,11 @@ pub fn resolve_binary>( return Ok(abs_prog.to_path_buf()); } if abs_prog.extension().is_none() { - let abs_prog = abs_prog.with_extension("exe"); - if is_exe(&abs_prog) { - return Ok(abs_prog.to_path_buf()); + for extension in ["com", "exe"] { + let abs_prog = abs_prog.with_extension(extension); + if is_exe(&abs_prog) { + return Ok(abs_prog.to_path_buf()); + } } } }