------ art_5998_10458728.1200381674304 Content-Type: multipart/alternative; boundary --- art_5999_23417534.1200381674304" ------ art_5999_23417534.1200381674304 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I while ago on ruby-core there was some discussion about SCRIPT_LINES__ and the undesired behavior of appending lines when a file is read more than one in Ruby. See http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/7909 A patch was made to Ruby 1.9. However 1.8 still has the old and presumably unwanted behavior. (At least from the standpoint of rcov and ruby debuggers, it is unwanted.) Below is the patch from in the previous post. I'd appreciate it if it could be applied. Thanks. ------ art_5999_23417534.1200381674304 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I while ago on ruby-core there was some discussion about SCRIPT_LINES__ and the undesired behavior of appending lines when a file is read more than one in Ruby. See<br><a href ttp://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/7909" target blank"> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/7909</a><br><br>A patch was made to Ruby 1.9. However 1.8 still has the old and presumably unwanted behavior. (At least from the standpoint of rcov and ruby debuggers, it is unwanted.) <br><br>Below is the patch from in the previous post. I'd appreciate it if it could be applied.<br><br>Thanks.<br> ------ art_5999_23417534.1200381674304-- ------ art_5998_10458728.1200381674304 Content-Type: text/x-patch; name=SCRIPT_LINES_.diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_fbg4auvy0 Content-Disposition: attachment; filename=SCRIPT_LINES_.diff LS0tIHBhcnNlLnkufjE0MzEzfgkyMDA4LTAxLTE1IDAxOjU3OjMwLjAwMDAwMDAwMCAtMDUwMAor KysgcGFyc2UueQkyMDA4LTAxLTE1IDAxOjUwOjE1LjAwMDAwMDAwMCAtMDUwMApAQCAtMjU5OCwx MSArMjU5OCw4IEBAIHl5Y29tcGlsZShmLCBsaW5lKQogCWhhc2ggPSByYl9jb25zdF9nZXQocmJf Y09iamVjdCwgcmJfaW50ZXJuKCJTQ1JJUFRfTElORVNfXyIpKTsKIAlpZiAoVFlQRShoYXNoKSA9 PSBUX0hBU0gpIHsKIAkgICAgZm5hbWUgPSByYl9zdHJfbmV3MihmKTsKLQkgICAgcnVieV9kZWJ1 Z19saW5lcyA9IHJiX2hhc2hfYXJlZihoYXNoLCBmbmFtZSk7Ci0JICAgIGlmIChOSUxfUChydWJ5 X2RlYnVnX2xpbmVzKSkgewotCQlydWJ5X2RlYnVnX2xpbmVzID0gcmJfYXJ5X25ldygpOwotCQly Yl9oYXNoX2FzZXQoaGFzaCwgZm5hbWUsIHJ1YnlfZGVidWdfbGluZXMpOwotCSAgICB9CisJICAg IHJ1YnlfZGVidWdfbGluZXMgPSByYl9hcnlfbmV3KCk7CisJICAgIHJiX2hhc2hfYXNldChoYXNo LCBmbmFtZSwgcnVieV9kZWJ1Z19saW5lcyk7CiAJfQogCWlmIChsaW5lID4gMSkgewogCSAgICBW QUxVRSBzdHIgPSByYl9zdHJfbmV3KDAsMCk7Cg ------ art_5998_10458728.1200381674304--