From 5def8a49fdf652af9e53ef815bd494445c1d75e7 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 5 Feb 2001 11:54:56 +0000 Subject: (head_tail): fix usage --- perl-install/commands.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/commands.pm') diff --git a/perl-install/commands.pm b/perl-install/commands.pm index 5e5cb3d03..0be485ec1 100644 --- a/perl-install/commands.pm +++ b/perl-install/commands.pm @@ -325,7 +325,7 @@ sub dd { sub head_tail { my ($h, $n) = getopts(\@_, qw(hn)); - $h || @_ > 1 + bool($n) and die "usage: $0 [-h] [-n lines] []\n"; + $h || @_ < bool($n) and die "usage: $0 [-h] [-n lines] []\n"; $n = $n ? shift : 10; local *F; @_ ? open(F, $_[0]) || die "error: can't open file $_[0]\n" : (*F = *STDIN); -- cgit v1.2.1