Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

merging in changes from tekn0t

  • Loading branch information...
commit 7b22891b55d591e2841586797d64d599ea7354a3 2 parents f4b1d74 + a98bfeb
Hampton Catlin hcatlin authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/subexec.rb
7 lib/subexec.rb
View
@@ -114,7 +114,12 @@ def spawn
end
def exec
- self.output = `export LANG=#{lang} && #{command} 2>&1`
+ if !(RUBY_PLATFORM =~ /win32|mswin|mingw/).nil?
+ self.output = `set LANG=#{lang} && #{command} 2>&1`
+ else
+ self.output = `export LANG=#{lang} && #{command} 2>&1`
+ end
+ self.exitstatus = $?.exitstatus
end
end

1 comment on commit 7b22891

Cristian Molina

Hi!
the "&&" and "2>&1" shell syntax doesn't work in a Windows cmd.
Redirection is like this:
somecommand > nul
somecommand 2> nul
I'll try to make a pull request with a fix.
Thanks!

Please sign in to comment.
Something went wrong with that request. Please try again.