[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Version & Distribution identification



Christopher Yeoh wrote:
> -v, --version
>    Display version of LSB against which distribution is compliant. This
>    would be a numerical value (ie containing only digit and '.' characters,
>    eg 1.0, or 2.0.1 etc)

For the benefit of programs that just want to see if they can run,
you might want an option to check whether a version of LSB
is supported.  (This probably means defining how to compare two versions 
to see if one is later than the other.  Does the LSB already do that?)
e.g.
  -c, --compare-version xxxx
would print "Supported" and return zero status if xxxx was earlier than
the version that -v returns, and would print "Not supported" if xxxx
was later than the version that -v returns.

- Dan

-- 
Entia non sunt multiplicanda praeter necessitatem.



Reply to: