[SVN] Re: r10052 (Process.run() and redirection)

Luke Daley ld at ldaley.com
Wed Jun 25 22:12:51 UTC 2008


On 26/06/2008, at 5:31 AM, Alexander John Ross wrote:

> TextMate::Process.run seems to ignore redirection of stderr

Process.run() follows the same semantics as ruby exec()

 > If optional arguments, sequence of arg, are not given, that  
argument is taken as a line that is subject to shell expansion before  
being executed. If one or more arg given, they are passed as  
parameters to command with no shell expansion.

http://www.ruby-doc.org/core-1.9/classes/Kernel.html#M006067

Redirecting err to out is a feature of the shell, so it's only going  
to work with the 'command as one string' variant.

-- 

LD.



More information about the textmate-dev mailing list