mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tail: Reactivate --presume-input-pipe option
This commit is contained in:
parent
adc4ecd856
commit
fa8eaf3080
1 changed files with 2 additions and 1 deletions
|
@ -159,7 +159,8 @@ fn tail_file(
|
|||
Ok(mut file) => {
|
||||
input_service.print_header(input);
|
||||
let mut reader;
|
||||
if file.is_seekable(if input.is_stdin() { offset } else { 0 })
|
||||
if !settings.presume_input_pipe
|
||||
&& file.is_seekable(if input.is_stdin() { offset } else { 0 })
|
||||
&& metadata.as_ref().unwrap().get_block_size() > 0
|
||||
{
|
||||
bounded_tail(&mut file, settings);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue