Skip to contentSkip to conversation

tailf: deprecated

PATCH Applied Ruediger Meier 2 participants 3 messages Mar 16, 2015 – Mar 17, 2015 Util-Linux package

lore
Share & tools
lore
#0 lore raw
Quoted 16 lines · you
Quoted 5 lines · Ruediger Meier
 Documentation/deprecated.txt |  5 +++++
 tests/expected/tailf/simple  |  1 +
 text-utils/tailf.1           |  6 ++++++
 text-utils/tailf.c           | 16 ++++++++++++----
 4 files changed, 24 insertions(+), 4 deletions(-)

Boys you're so bad.. I use tailf! Well, both patches applied :-)

Quoted 7 lines

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

(quoted diff) +0 -0
@@ -246,6 +251,9 @@ int main(int argc, char **argv)
 	textdomain(PACKAGE);
 	atexit(close_stdout);
 
Quoted 4 lines

Review int main(int argc, char **argv) · line 255

Quoted 2 lines
(quoted diff) +2 -0
+	warnx(_("warning: "
+		"use of 'tailf' is deprecated, use 'tail -f' instead"));

moved to usage() to avoid regression in output.

Ok, then we can also remove it from test output again.

cu,
Rudi

#1 lore raw

PATCH 1/1 tests: remove warning from test output

From: Ruediger Meier <[email protected]>

This was added in 3f8478a7 but it's only printed in --help.

---
 tests/expected/tailf/simple | 1 -
 1 file changed, 1 deletion(-)
tests/expected/tailf/simple +0 -1
index 5edc76b..ddf72de 100644
@@ -1,3 +1,2 @@
-tailf: warning: use of 'tailf' is deprecated, use 'tail -f' instead
 a b c d e f g h i j k l m n o p q r s t u v w x y z
 0 1 2 3 4 5 6 7 8 9
Signature · 1 line
1.8.4.5
maintainer Applied
#2 lore raw

Re: [PATCH] tests: remove warning from test output

Quoted 2 lines · Ruediger Meier
 tests/expected/tailf/simple | 1 -
 1 file changed, 1 deletion(-)

Applied, thanks.

Quoted 1 line
Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com