Author: stack
Date: Wed Apr 20 18:11:48 2011
New Revision: 1095470

URL: http://svn.apache.org/viewvc?rev=1095470&view=rev
Log:
Reenable the windoze check since this doest not seem to be cause of jenkins 
test failure of TestShell

Modified:
    hbase/trunk/src/main/ruby/irb/hirb.rb

Modified: hbase/trunk/src/main/ruby/irb/hirb.rb
URL: 
http://svn.apache.org/viewvc/hbase/trunk/src/main/ruby/irb/hirb.rb?rev=1095470&r1=1095469&r2=1095470&view=diff
==============================================================================
--- hbase/trunk/src/main/ruby/irb/hirb.rb (original)
+++ hbase/trunk/src/main/ruby/irb/hirb.rb Wed Apr 20 18:11:48 2011
@@ -17,13 +17,10 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
-#require 'rbconfig'
+require 'rbconfig'
 
 module IRB
-  # WINDOZE = Config::CONFIG['host_os'] =~ /mswin|mingw/
-  # Map the '/dev/null' according to the runing platform
-  # Under Windows platform the 'dev/null' is not fully compliant with unix,
-  # and the 'NUL' object need to be use instead.
+  WINDOZE = Config::CONFIG['host_os'] =~ /mswin|mingw/
 
   # Subclass of IRB so can intercept methods
   class HIRB < Irb
@@ -37,8 +34,11 @@ module IRB
       # happen is the shell exiting because of failed IRB construction with
       # no error (though we're not blanking STDERR)
       begin
+        # Map the '/dev/null' according to the runing platform
+        # Under Windows platform the 'dev/null' is not fully compliant with 
unix,
+        # and the 'NUL' object need to be use instead.
         devnull = "/dev/null"
-        #devnull = "NUL" if WINDOZE 
+        devnull = "NUL" if WINDOZE 
         f = File.open(devnull, "w")
         $stdout = f
         super


Reply via email to