(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 received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1273689 Title: lxc-version is missing since 1.0.0beta3 - now lacking a programatic way to query lxc version To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1273689/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs