[lxc-devel] [PATCH 2/3] lxc-ls: prepend container names with -- when calling ls
Serge Hallyn
serge.hallyn at canonical.com
Thu Jun 14 22:33:27 UTC 2012
Otherwise a container name starting with a dash confuses ls.
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
---
src/lxc/lxc-ls.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxc/lxc-ls.in b/src/lxc/lxc-ls.in
index 11a3b45..ea38054 100644
--- a/src/lxc/lxc-ls.in
+++ b/src/lxc/lxc-ls.in
@@ -97,4 +97,4 @@ if [ -z "$containers" ]; then
fi
cd "$directory"
-ls -d $@ $containers
+ls -d $@ -- $containers
--
1.7.9.5
More information about the lxc-devel
mailing list