coreutils/src/uu/tail
Roy Ivy III 6539b8c6b9 maint/deps ~ change version specification for dependencies between sub-packages
- refactor internal version specifications to be ">=M.m.p" (where M.m.p is *already published*)

## [why]

Loosening internal version dependencies decreases the coupling between packages such
that packages can be published in a looser order. It allows the packages to be version
updated and published in tandem (ie, by using `cargo workspace ...`). Once published,
the internal versions can then be updated (again, to an *already published* package
version), as needed.
2020-11-08 20:26:46 -06:00
..
src Use an iterator over OsString for uumain() 2020-06-16 03:28:02 -05:00
Cargo.toml maint/deps ~ change version specification for dependencies between sub-packages 2020-11-08 20:26:46 -06:00
README.md change ~ make all sub-crates independent 2020-05-29 22:59:40 -05:00

Notes / ToDO

  • Rudimentary tail implementation.

Missing features:

Flags with features

  • --max-unchanged-stats : with --follow=name, reopen a FILE which has not changed size after N (default 5) iterations to see if it has been unlinked or renamed (this is the usual case of rotated log files). With inotify, this option is rarely useful.
  • --retry : keep trying to open a file even when it is or becomes inaccessible; useful when following by name, i.e., with --follow=name

Others

  • The current implementation does not handle - as an alias for stdin.

Possible optimizations:

  • Don't read the whole file if not using -f and input is regular file. Read in chunks from the end going backwards, reading each individual chunk forward.