Comments (2)
This is an interesting one. /proc/cpuinfo
advertises itself as a regular empty file, but it appears that it cannot be memory mapped. rg
will try to use memory maps for single file searches, but since /proc/cpuinfo
is an empty file, it reports no matches.
If you pass --no-mmap
to rg
, then searching works.
(ag
has the same failure mode.)
from ripgrep.
Duh. I know. If a file has size 0
, then just fall back to regular read
calls.
from ripgrep.
Related Issues (20)
- Include valid values in --help HOT 2
- Turn on PCRE2 automatically with a warning when look-around or backreferences are detected HOT 2
- consider adding an `rg:` prefix all error messages HOT 1
- issue when using double quotes to search in linux HOT 1
- feat(globset): allow custom component separator characters? HOT 3
- [ignore] Add API for adding glob patterns to ignore HOT 4
- shard regexes when there are many and do multiple passes over the haystack HOT 4
- Ripgrep significantly slower than grep HOT 3
- Ability to ignore non-existent `PATTERNFILE` HOT 2
- multiline search regex wildcard not expanding HOT 1
- Precompiled binary for powerpc64le HOT 1
- Add Vuejs as a file list to type-list HOT 1
- zero or more quantifier does not work HOT 1
- Inconsistent behavior with negation pattern in `.gitignore` HOT 8
- compiling with simd-accel feature is broken due to removal of stdsimd feature in nightly breaking the packed_simd crate HOT 1
- File named `.config` is ignored for no reason HOT 1
- Process substitution search path behavior change in 14.0.0
- [feature] Line masking (ignoring lines or part of lines in matching but displayed in output) HOT 3
- Provide Statically Compiled Binaries for (aarch64|arm64) Linux HOT 1
- Include regex syntax in man page HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ripgrep.