Explorar o código

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
Patrick Dubroy %!s(int64=15) %!d(string=hai) anos
pai
achega
b715b14807
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor.py

+ 1 - 1
editor.py

@@ -82,7 +82,7 @@ least one of these before using this command."""
       fd = None
 
       if re.compile("^.*[$ \t'].*$").match(editor):
-        args = [editor + ' "$@"']
+        args = [editor + ' "$@"', 'sh']
         shell = True
       else:
         args = [editor]