mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tail: no headers when following a single file
Headers should only be printed when following more than one file. This commit makes the test_follow() test pass again.
This commit is contained in:
parent
8866e05e98
commit
440fb867bc
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ const BLOCK_SIZE: u64 = 1 << 16;
|
|||
|
||||
fn follow<T: Read>(mut readers: Vec<BufReader<T>>, filenames: &Vec<String>, settings: &Settings) {
|
||||
assert!(settings.follow);
|
||||
let mut last = readers.len();
|
||||
let mut last = readers.len() - 1;
|
||||
|
||||
loop {
|
||||
sleep(Duration::new(0, settings.sleep_msec*1000));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue