I’m stumped as to why I’m getting the following error on commit. I’ve
included the some verbose output from cvs.
→
loginfo:Parse_Info(D:/development/test-cvs-respo/Underwriting/JavaSource,D:\development\test-workspace\scripts\commit2rss.rb
%{} )
→ run_popen(D:\development\test-workspace\scripts\commit2rss.rb
“Underwriting/JavaSource” )
D:/development/test-workspace/scripts/commit2rss.rb:44:in `gets’: Bad
file descriptor (Errno::EBADF)
from D:/development/test-workspace/scripts/commit2rss.rb:44
Line 44 refers to this block of code
while line = STDIN.gets
line.chomp!
if line =~ /^[A-Z].:\s$/
desc << “
” << line << “”
else
desc << line
end
desc << “ ”
end
I’d appreciate any help on this.
Thanks,
Paul
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete
the original. Any other use of the email by you is prohibited.
Hoo-boy. I think you need to decide which path delimiter to use, and
stick
to your single choice. The above line is truly ecumenical, but I don’t
think Ruby is. I don’t have a Windows system to find out how Ruby reacts
to
these freely mixed delimiters, but this line really stands out.
I’ve removed that potential problem from the script, but to no avail.
From reading through some of the news groups there seems to be some
suggestion that Ruby needs to have a real console to read from STDIN.
Whether this is specific to Ruby on Windows I do not know.
Does anyone have knowledge of Ruby on Windows to answer this?
Thanks,
Paul
From: Paul L. [mailto:[email protected]]
Sent: Mon 25/09/2006 23:10
To: ruby-talk ML
Subject: Re: commit2rss.rb - running on hooking up CVS NT
Hoo-boy. I think you need to decide which path delimiter to use, and
stick
to your single choice. The above line is truly ecumenical, but I don’t
think Ruby is. I don’t have a Windows system to find out how Ruby reacts
to
these freely mixed delimiters, but this line really stands out.
–
Paul L.
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete
the original. Any other use of the email by you is prohibited.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.