Files
snapd/data/env
Maciej Borzecki ae84b651f4 data/env/snapd: use quoting in case PATH contains spaces
When PATH contain spaces, which is a really bad idea anyway, the export will
most likely set it to a value up to the first space. Use quoting to prevent
that.

Note, shellcheck does not complain about that, but try this:

sh-5.1$ export foo=foo bar baz
sh-5.1$ echo $foo
foo
sh-5.1$ export foo="foo bar baz"
sh-5.1$ echo $foo
foo bar baz
sh-5.1$

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-02-02 09:56:48 +01:00
..