Marking bug as invalid since there's a replacement command and our
existing documentation is correct with regard to the version currently
available in that release.
** Changed in: lxc (Ubuntu)
Status: New = Invalid
--
You received this bug notification because you are a member of Ubuntu
FYI lxc-start --version fails on precise (and saucy), which then
makes this check release dependent (and/or over existence of lxc-version
binary).
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
(sorry, early comment posting) - ie querying the version now cross
releases would involve something alike:
version=$((lxc-version 2/dev/null || lxc-start --version) | sed 's/.*
//')
That 'sed' is to cope with lxc-version textual formatting, while lxc-
start --version shows it straight.
--
You
So yes, if you want the upstream version number in a generic way which
works with older and newer lxc, you'll need something like what you
listed above.
However, note that in most distributions, the upstream version number is
mostly irrelevant due to the amount of cherry-picking that's done, The