Permalink
Browse files

Fix for handling values of EDITOR which contain a space.

The shell swallows the 0th arg, which was the filename. Simple fix
is to pass in an extra arg for the shell to swallow.

Change-Id: Iad6304ba9ccea6e7262ee06ef87d3dac57dbde81
  • Loading branch information...
1 parent 60829ba commit b715b148076ef589e806a98a183c8f4468f75cf6 @pdubroy pdubroy committed with spearce Jul 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 editor.py
View
@@ -82,7 +82,7 @@ def EditString(cls, data):
fd = None
if re.compile("^.*[$ \t'].*$").match(editor):
- args = [editor + ' "$@"']
+ args = [editor + ' "$@"', 'sh']
shell = True
else:
args = [editor]

0 comments on commit b715b14

Please sign in to comment.