Fixed rbt patch to work with $EDITOR that has spaces
Review Request #6784 — Created Jan. 16, 2015 and submitted
Before, it was looking for the executable with exactly
the name in $EDITOR, spaces and all, and failing to find it.
Now it splits it up by spaces before calling the shell.Fixes issue: Issue 3652: rbt patch throws "OSError: [Errno 2] No such file or directory" if EDITOR contains flags
From the issue.
EDITOR="vim -X" python -c "from rbtools.utils.console import edit_text; edit_text('')"Before, it crashed, now it does not.
| Description | From | Last Updated | 
|---|---|---|
| 
       
        There's a right square bracket with no left square bracket.  | 
      VT VTL-Developer | 
 TB
   
   
  - Change Summary:
 - 
    
split called with no arguments now.
 - Commit:
 - 
    96df3233631775a3fea89c8fa3129b35845095d2dc34986b41e3084a07937fee37f2f54c12eb4734
 - Diff:
 - 
    
Revision 2 (+1 -1)
 
 
Tool: PEP8 Style Checker Processed Files: rbtools/utils/console.py Tool: Pyflakes Processed Files: rbtools/utils/console.py