01mf02 / jaq

A jq clone focussed on correctness, speed, and simplicity
MIT License
2.61k stars 63 forks source link

Fall back to regular file loading if memory mapping fails. #168

Closed 01mf02 closed 4 months ago

01mf02 commented 4 months ago

This PR allows loading files that cannot be memory-mapped. For example, before this PR, running jaq . <(echo 1) failed, whereas after this PR, it yields 1 as expected.

This should close https://github.com/01mf02/jaq/issues/155.