summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/util/executable.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/util/executable.py b/lib/spack/spack/util/executable.py
index b162cffc43..603fb5c2ac 100644
--- a/lib/spack/spack/util/executable.py
+++ b/lib/spack/spack/util/executable.py
@@ -5,6 +5,7 @@
import os
import re
+import shlex
import subprocess
from six import string_types, text_type
@@ -19,7 +20,7 @@ class Executable(object):
"""Class representing a program that can be run on the command line."""
def __init__(self, name):
- self.exe = name.split(' ')
+ self.exe = shlex.split(name)
self.default_env = {}
self.returncode = None