FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 05-01-2011, 05:02 PM
Jakub Wilk
 
Default Bug#624795: linux-base: "$0" in linux-version help

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
 
Old 05-01-2011, 05:08 PM
Ben Hutchings
 
Default Bug#624795: linux-base: "$0" in linux-version help

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.
 

Thread Tools




All times are GMT. The time now is 10:20 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org