[lxc-devel] [PATCH v2] lxc-version: use POSIX shell instead of bash
Stéphane Graber
stgraber at ubuntu.com
Tue Nov 27 15:03:29 UTC 2012
On 11/27/2012 02:13 AM, Natanael Copa wrote:
> There is no reason to depend on bash for a single echo.
>
> Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>
Applied to staging. Thanks.
As for whether to move that code to lxc-info, I don't think that'd be
the right thing to do as lxc-info is meant to retrieve information from
a container, not from the host.
However, I think it'd make sense to have the version exposed by the C
API so that we may be able to implement a consistent "--version" to all
LXC commands that'd return the lxc version number.
If we do that, then there won't be any need for lxc-version anymore.
> ---
> Changes v1 -> v2:
> - add signed-off-by
>
> src/lxc/lxc-version.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/lxc/lxc-version.in b/src/lxc/lxc-version.in
> index 1bd055a..b6875da 100644
> --- a/src/lxc/lxc-version.in
> +++ b/src/lxc/lxc-version.in
> @@ -1,3 +1,3 @@
> -#!/bin/bash
> +#!/bin/sh
>
> echo "lxc version: @PACKAGE_VERSION@"
>
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20121127/a4c18a30/attachment.pgp>
More information about the lxc-devel
mailing list