From 63ecaedb3bb95bc64987c233029a5d6d62c44ee2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 19 May 2013 10:25:21 -0700 Subject: [PATCH] EMERGE_DEFAULT_OPTS: shlex for embedded quotes --- pym/_emerge/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 8afb56da9..ce00ae34a 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -1043,7 +1043,8 @@ def emerge_main(args=None): tmpcmdline = [] if "--ignore-default-opts" not in myopts: - tmpcmdline.extend(settings["EMERGE_DEFAULT_OPTS"].split()) + tmpcmdline.extend(portage.util.shlex_split( + settings.get("EMERGE_DEFAULT_OPTS", ""))) tmpcmdline.extend(args) myaction, myopts, myfiles = parse_opts(tmpcmdline) -- 2.26.2