[ruby-dev:3489] Re: [BUG?] open()'s command line interpretation

From: matz@... (Yukihiro Matsumoto)
Date: 1998-08-26 06:07:15 UTC
List: ruby-dev #3489
まつもと ゆきひろです

In message "[ruby-dev:3486] Re: [BUG?] open()'s command line interpretation"
    on 98/08/26, WATANABE Hirofumi <watanabe@ase.ptg.sony.co.jp> writes:

|わたなべです.

|やっぱだめっす. irb みたいに
|require "irb/irb-scanner"
|てなことをしてると(full path を返さないから).

んじゃあ,こんな感じはどうかな.

--- dln.c	1998/07/29 09:50:28	1.1.1.2.2.8
+++ dln.c	1998/08/26 06:03:32
@@ -1567,2 +1567,3 @@
       return fname;
+    if (exe_flag && strchr(fname, '/')) return fname;
 #if defined(MSDOS) || defined(NT) || defined(__human68k__)
@@ -1572,2 +1573,3 @@
       return fname;
+    if (exe_flag && strchr(fname, '\\')) return fname;
 #endif

In This Thread