From ace768ee42c3202071cb0e0c4916994fccc9fdb6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 12 Jan 2004 09:41:29 +0000 Subject: [PATCH] (main): Warn about following stdin only when it's a tty. --- src/tail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tail.c b/src/tail.c index 7f992d8962..7e574a3eba 100644 --- a/src/tail.c +++ b/src/tail.c @@ -1725,7 +1725,7 @@ main (int argc, char **argv) /* When following forever, warn if any file is `-'. This is only a warning, since tail's output (before a failing seek, and that from any non-stdin files) might still be useful. */ - if (forever && found_hyphen) + if (forever && found_hyphen && isatty (STDIN_FILENO)) error (0, 0, _("warning: following standard input" " indefinitely is ineffective")); } -- 2.47.2