commit | b715b148076ef589e806a98a183c8f4468f75cf6 | [log] [tgz] |
---|---|---|
author | Patrick Dubroy <dubroy@google.com> | Thu Jul 29 17:10:47 2010 -0700 |
committer | Shawn O. Pearce <sop@google.com> | Fri Aug 06 17:05:04 2010 -0700 |
tree | 4de4a6d9f095ee933c6f5b8110e4719ac80a8504 | |
parent | 60829ba72fe81b1de1c1e9c6e0de486e9e90bddd [diff] |
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
diff --git a/editor.py b/editor.py index 23aab54..62afbb9 100644 --- a/editor.py +++ b/editor.py
@@ -82,7 +82,7 @@ fd = None if re.compile("^.*[$ \t'].*$").match(editor): - args = [editor + ' "$@"'] + args = [editor + ' "$@"', 'sh'] shell = True else: args = [editor]