Bug#624795: linux-base: $0 in linux-version help

2011-05-01 Thread Jakub Wilk

Package: linux-base
Version: 3.2
Severity: minor
Tags: patch

$ linux-version --help | head -n1
Usage: $0 compare VERSION1 OP VERSION2

It should be linux-version instead of $0.

--
Jakub Wilk
diff --git a/bin/linux-version b/bin/linux-version
--- a/bin/linux-version
+++ b/bin/linux-version
@@ -23,7 +23,7 @@
 
 sub usage {
 my $fh = shift;
-print $fh ( 'EOT');
+print $fh ( EOT);
 Usage: $0 compare VERSION1 OP VERSION2
$0 sort [--reverse] [VERSION1 VERSION2 ...]
$0 list [--paths]


Bug#624795: linux-base: $0 in linux-version help

2011-05-01 Thread Ben Hutchings
On Sun, 2011-05-01 at 19:02 +0200, Jakub Wilk wrote:
 Package: linux-base
 Version: 3.2
 Severity: minor
 Tags: patch
 
 $ linux-version --help | head -n1
 Usage: $0 compare VERSION1 OP VERSION2
 
 It should be linux-version instead of $0.

That's weird; I really thought I had seen it working!

 diff --git a/bin/linux-version b/bin/linux-version
 --- a/bin/linux-version
 +++ b/bin/linux-version
 @@ -23,7 +23,7 @@
  
  sub usage {
  my $fh = shift;
 -print $fh ( 'EOT');
 +print $fh ( EOT);
  Usage: $0 compare VERSION1 OP VERSION2
 $0 sort [--reverse] [VERSION1 VERSION2 ...]
 $0 list [--paths]

Whoa, subtle.  Thanks.

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.


signature.asc
Description: This is a digitally signed message part