summaryrefslogtreecommitdiff
blob: 3fa50563451a0b74915294bfda3378188a26dfec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 2756e8c6815db57ae25d82f9e11ed3a03d23e0cc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@flameeyes.eu>
Date: Mon, 30 Apr 2012 11:37:06 -0700
Subject: [PATCH 1/2] Fix exporting of LANG setting for Unix platforms.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

When exporting a variable you should use the name, not the content.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
---
 lib/subexec.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/subexec.rb b/lib/subexec.rb
index 2bbbf69..28c5092 100644
--- a/lib/subexec.rb
+++ b/lib/subexec.rb
@@ -117,7 +117,7 @@ class Subexec
       if !(RUBY_PLATFORM =~ /win32|mswin|mingw/).nil?
         self.output = `set LANG=#{lang} && #{command} 2>&1`
       else
-        self.output = `LANG=#{lang} && export $LANG && #{command} 2>&1`
+        self.output = `LANG=#{lang} && export LANG && #{command} 2>&1`
       end
       self.exitstatus = $?.exitstatus
     end
-- 
1.7.8.6