Skip to content

Commit

Permalink
• Update ScriptMate to use new TextMate::Process.run() API.
Browse files Browse the repository at this point in the history
The previous implementation of scriptmate passed a single string to exec(). This version aims to be safer by passing an array of components that make up the command and as a result not be subject to shell expansion. The Ruby and Python scriptmate implementations either relied upon or catered for shell expansion so they had to be modified.


git-svn-id: http://svn.textmate.org/trunk/Bundles/Ruby.tmbundle@9632 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
ldaley committed May 20, 2008
1 parent 49a034c commit 1aaa62a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Support/RubyMate/run_script.rb
Expand Up @@ -25,7 +25,7 @@ def filter_cmd(cmd)
[".."] * (path_ary.length - index - 1) ) +
["lib"] )
if File.exist? lib_path
cmd.insert(1, "-I#{e_sh lib_path}:#{e_sh test_path}")
cmd.insert(1, "-I#{lib_path}:#{test_path}")
end
end
end
Expand Down

0 comments on commit 1aaa62a

Please sign in to comment.