[前][次][番号順一覧][スレッド一覧]

ruby-changes:26520

From: nobu <ko1@a...>
Date: Sun, 23 Dec 2012 15:35:06 +0900 (JST)
Subject: [ruby-changes:26520] nobu:r38571 (trunk): goruby.c: IRB at end

nobu	2012-12-23 15:34:56 +0900 (Sun, 23 Dec 2012)

  New Revision: 38571

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38571

  Log:
    goruby.c: IRB at end
    
    * goruby.c (goruby_options): start IRB after goruby initialized.

  Modified files:
    trunk/goruby.c

Index: goruby.c
===================================================================
--- goruby.c	(revision 38570)
+++ goruby.c	(revision 38571)
@@ -27,7 +27,7 @@ init_golf(VALUE arg) https://github.com/ruby/ruby/blob/trunk/goruby.c#L27
 void *
 goruby_options(int argc, char **argv)
 {
-    static const char cmd[] = "require 'irb'\nIRB.start";
+    static const char cmd[] = "END{require 'irb';IRB.start}";
     int rw[2], infd;
     void *ret;
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]