diff --git a/bin/tail b/bin/tail index 3ba22b8b..9636156b 100755 --- a/bin/tail +++ b/bin/tail @@ -34,20 +34,21 @@ use Getopt::Long; # because of some special handling on numeric options use constant EX_SUCCESS => 0; use constant EX_FAILURE => 1; -use vars qw($opt_b $opt_c $opt_f $opt_h $opt_n $opt_r); +use vars qw($opt_b $opt_c $opt_f $opt_n $opt_r); my $me = basename $0; -sub usage($;$) +sub usage { - print STDERR "$_[1]\n" if $_[1]; + my $msg = shift; + print STDERR "$msg\n" if defined $msg; print STDERR < | B<-r>] [B<-b number> | B<-c number> | B<-n number> | B<[-+]number>] [B...] -xtail [B<-h>] file ... +xtail file ... =head1 DESCRIPTION @@ -491,7 +490,7 @@ An interrupt character (usually CTRL/C or DEL) will display a list of the most recently modified files being watched. Send a quit signal (usually CTRL/backslash) to stop the program. -The options are the following for I (only the B<-h> option is +The options are the following for I (no options are supported by I) : =over 4 @@ -514,10 +513,6 @@ reset its position back to the beginning. This makes I more useful for watching log files that may get rotated. The B<-f> option is ignored if the standard input is a pipe, but not if it is a FIFO. -=item B<-h> - -Displays a short usage message. - =item B<-n> number The location is B lines.