1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

tail: update README

This commit is contained in:
Jan Scheer 2022-04-24 15:09:28 +02:00
parent 6e1e3ac012
commit 5331a10a7b
No known key found for this signature in database
GPG key ID: C62AD4C29E2B9828
3 changed files with 7 additions and 2 deletions

View file

@ -2,6 +2,10 @@
## Missing features ## Missing features
The `-F` flag (same as `--follow=name --retry`) has very good support on Linux (inotify backend),
works good enough on macOS/BSD (kqueue backend) with some minor tests not working,
and is fully untested on Windows.
### Flags with features ### Flags with features
- [x] fast poll := '-s.1 --max-unchanged-stats=1' - [x] fast poll := '-s.1 --max-unchanged-stats=1'

View file

@ -49,11 +49,11 @@ use uucore::ringbuffer::RingBuffer;
#[cfg(unix)] #[cfg(unix)]
use crate::platform::stdin_is_pipe_or_fifo; use crate::platform::stdin_is_pipe_or_fifo;
#[cfg(unix)] #[cfg(unix)]
use std::fs::metadata;
#[cfg(unix)]
use std::os::unix::fs::MetadataExt; use std::os::unix::fs::MetadataExt;
#[cfg(unix)] #[cfg(unix)]
use std::os::unix::prelude::FileTypeExt; use std::os::unix::prelude::FileTypeExt;
#[cfg(unix)]
use std::fs::metadata;
const ABOUT: &str = "\ const ABOUT: &str = "\
Print the last 10 lines of each FILE to standard output.\n\ Print the last 10 lines of each FILE to standard output.\n\

View file

@ -1416,6 +1416,7 @@ fn test_follow_inotify_only_regular() {
assert_eq!(buf_stderr, "".to_string()); assert_eq!(buf_stderr, "".to_string());
} }
#[cfg(unix)]
fn take_stdout_stderr(p: &mut std::process::Child) -> (String, String) { fn take_stdout_stderr(p: &mut std::process::Child) -> (String, String) {
let mut buf_stdout = String::new(); let mut buf_stdout = String::new();
let mut p_stdout = p.stdout.take().unwrap(); let mut p_stdout = p.stdout.take().unwrap();