diff options
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 6 |
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: |