4 ms·
Note that entr doesn't recursively watch for file changes. It has a list of files it watches for changes, but this list isn't amended when new files are added.
by ben-schaaf 2y ago
Note that entr doesn't recursively watch for file changes. It has a list of files it watches for changes, but this list isn't amended when new files are added. Fundamentally that's a fairly small subset of proper recursive file watching. In terms of just watching files a better project to compare against is https://github.com/inotify-tools/inotify-tools https://github.com/inotify-tools/inotify-tools.
- kreyenborgi 2y agofrom man entr: Rebuild project if a source file is modified or added to the src/ di‐ rectory: $ while sleep 0.1; do ls src/*.rb | entr -d make; done Though I shudder to think of the amount of code needed to rewrite that in a compiled language while sticking to the principle of not reinventing anything remotely wheel-shaped. (Btw the libinotify/src is like 2.3kloc, inotify cli <1.2kloc.)