# You should have received a copy of the GNU General Public License
# along with GNU Emacs; see the file COPYING. If not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
+# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
require 'thread'
require 'stringio'
Thread.current[:rubyserv_response] = eval(r, exec_env.empty_binding)
rescue Exception => e
Thread.current[:rubyserv_error] = true
- Thread.current[:rubyserv_response] = e.to_s.sub(/\A.*?\n/, '')
+ Thread.current[:rubyserv_response] =
+ e.to_s.sub(/\A.*?\n#{Regexp.quote(__FILE__)}:\d+: /o, '')
end
send_line("# exit #{name}\r\n")
end
opts.on('-e', '--err ERRFILE', 'Send stderr to ERRFILE.') do |errfile|
opt_errfile = errfile
end
- opts.on('-l', '--log LOGFILE', 'Send stdlog to LOGFILE.') do |logfile|
+ opts.on('-l', '--log LOGFILE', 'Send log to LOGFILE.') do |logfile|
opt_logfile = logfile
end
opts.on_tail('--help', '-h', 'Show this message.') do