summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alot/commands/globals.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index d7d5e250..8140db1e 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -262,10 +262,7 @@ class ExternalCommand(Command):
try:
if self.shell:
_cmd = asyncio.create_subprocess_shell
- # The shell function wants a single string or bytestring,
- # we could just join it, but lets be extra safe and use
- # shlex.quote to avoid suprises.
- cmdlist = [shlex.quote(' '.join(self.cmdlist))]
+ cmdlist = [' '.join(self.cmdlist)]
else:
_cmd = asyncio.create_subprocess_exec
cmdlist = self.cmdlist