summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-24 12:09:24 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-24 12:09:24 -0400
commit35e084f64f715f90e2bfba232a299301b9c5d850 (patch)
tree68d40fccd78b2aa63d4aed60ef124ba43a90b45d /cmd2/cmd2.py
parentf3325cb39e9e20aa24d07107ebf048029059b44f (diff)
downloadcmd2-git-35e084f64f715f90e2bfba232a299301b9c5d850.tar.gz
Added unit tests
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index df7ce833..8b1cb672 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -3553,11 +3553,13 @@ class Cmd(cmd.Cmd):
else:
fobj.write('{}\n'.format(command.raw))
try:
+ quoted_fname = utils.quote_string(fname)
+
# noinspection PyTypeChecker
- self.do_edit(utils.quote_string(fname))
+ self.do_edit(quoted_fname)
# noinspection PyTypeChecker
- self.do_run_script(utils.quote_string(fname))
+ self.do_run_script(quoted_fname)
finally:
os.remove(fname)
elif args.output_file: