Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable bat to find more binary on Windows #2580

Closed
wants to merge 1 commit into from
Closed

Enable bat to find more binary on Windows #2580

wants to merge 1 commit into from

Conversation

mataha
Copy link
Contributor

@mataha mataha commented May 31, 2023

On Windows, more is a COM executable (i.e. its extension is com). As resolve_binary() tries to emulate the behaviour of Win32 API's CreateProcess(), it will search for more.exe and fail. This commit adds an exception to that by specifying the pager's binary explicitly.

Fixes #2570. See also BurntSushi/ripgrep#2523.

I'd like to add that more is not as bad as README makes it to be - it does support colors:

cmd_COSn24wvTg

src/output.rs Outdated Show resolved Hide resolved
On Windows, `more` is a COM executable (i.e. its extension is `com`).
As `resolve_binary()` previously tried to emulate the behaviour of Win32
API's `CreateProcess()`, it would search for `more.exe` and fail.
Cargo.toml Show resolved Hide resolved
@mataha
Copy link
Contributor Author

mataha commented Aug 28, 2023

Closing in favor of #2651.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bat refuses to page content
2 participants