From: Yukihiro Matsumoto Date: 2006-08-09T17:00:37+09:00 Subject: Re: bug in ruby or bug in my brain? Hi, I don't know but both caused an exception on my box by using random diff.txt file. In message "Re: bug in ruby or bug in my brain?" on Wed, 9 Aug 2006 16:45:05 +0900, ngoc writes: | |#!/usr/bin/ruby |diff_file = File.open('diff.txt') |diff_file.each { |line| | next if line =~ /^Only/ | system "dos2unix #{line.split(' and ').at(1).sub(' differ', '')}" |} |->work well | |------------------- |#!/usr/bin/ruby |diff_file = File.open('diff.txt') |diff_file.each { |line| | next if line =~ /^Only/ | system("dos2unix", line.split(' and ').at(1).sub(' differ', '')) |} |->problems with converting error message