[lxc-devel] [lxd-pkg-ubuntu/snappy-16] Qute $@ in the lxc wrapper.

sergiusens on Github lxc-bot at linuxcontainers.org
Fri Mar 10 02:48:54 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 582 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170310/d2a415fb/attachment.bin>
-------------- next part --------------
From 5af7b46fd491d895d5e69460d48e84554552d0a9 Mon Sep 17 00:00:00 2001
From: Sergio Schvezov <sergio.schvezov at canonical.com>
Date: Thu, 9 Mar 2017 23:48:38 -0300
Subject: [PATCH] Qute $@ in the lxc wrapper.

I am hoping this would solve
```
/snap/bin/lxc exec snapcraft -- python3 -c 'import urllib.request; urllib.request.urlopen("http://start.ubuntu.com/connectivity-check.html", timeout=5)'
  File "<string>", line 1
    import
         ^
SyntaxError: invalid syntax
```
---
 snapcraft/wrappers/lxc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/snapcraft/wrappers/lxc b/snapcraft/wrappers/lxc
index 9aaa68a..6ed6c6b 100755
--- a/snapcraft/wrappers/lxc
+++ b/snapcraft/wrappers/lxc
@@ -3,4 +3,4 @@ export LXD_DIR=${SNAP_COMMON}/lxd/
 export EDITOR=vim.tiny
 export VISUAL=${EDITOR}
 
-exec lxc $@
+exec lxc "$@"


More information about the lxc-devel mailing list