[#615] [MethodIndex] <!-- hhmts ... — keiju@... (Keiju ISHITSUKA)

けいじゅ@日本ラショナルソフトウェアです.

13 messages 1997/10/01

[#645] pack/unpack base64 — WATANABE Hirofumi <watanabe@...>

わたなべです.

18 messages 1997/10/06

[#654] [BUG?] ruby -r nothing-file — keiju@... (Keiju ISHITSUKA)

けいじゅ@日本ラショナルソフトウェアです.

29 messages 1997/10/06
[#661] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#662] Re: [BUG?] ruby -r nothing-file — WATANABE Hirofumi <watanabe@...> 1997/10/07

わたなべです.

[#663] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#666] Re: [BUG?] ruby -r nothing-file — keiju@... (石塚圭樹 ) 1997/10/07

けいじゅ@日本ラショナルソフトウェアです.

[#667] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#669] Re: [BUG?] ruby -r nothing-file — keiju@... (石塚圭樹 ) 1997/10/07

けいじゅ@日本ラショナルソフトウェアです.

[#670] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#671] Re: [BUG?] ruby -r nothing-file — keiju@... (石塚圭樹 ) 1997/10/07

けいじゅ@日本ラショナルソフトウェアです.

[#672] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#673] Re: [BUG?] ruby -r nothing-file — WATANABE Hirofumi <watanabe@...> 1997/10/07

わたなべです.

[#674] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#675] Re: [BUG?] ruby -r nothing-file — WATANABE Hirofumi <watanabe@...> 1997/10/07

わたなべです.

[#676] Re: [BUG?] ruby -r nothing-file — keiju@... (石塚圭樹 ) 1997/10/07

けいじゅ@日本ラショナルソフトウェアです.

[#677] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#678] Re: [BUG?] ruby -r nothing-file — keiju@... (石塚圭樹 ) 1997/10/07

けいじゅ@日本ラショナルソフトウェアです.

[#679] Re: [BUG?] ruby -r nothing-file — matz@... (Yukihiro Matsumoto) 1997/10/07

まつもと ゆきひろです

[#770] printn means print and newline — HYOUDOU Kouichi /note <hyoudo@...>

兵藤です%思い付きなのですが

19 messages 1997/10/28
[#771] Re: printn means print and newline — shugo@... (Shugo Maeda) 1997/10/28

前田です。

[ruby-dev:750] -x option

From: WATANABE Hirofumi <eban@...>
Date: 1997-10-19 05:52:28 UTC
List: ruby-dev #750
わたなべです.

もう一個 install script 絡みの話です.

-x option ってまさに sharp-bang が使えない DOS や VMS のため
にあるものだと思ってるですが, これが機能しません.

例えば

echo Let's install ruby.
ruby -x %0.bat
goto end
#! ruby
print "Hello\n"
__END__
:end

のような batch file と ruby script を混在させたものを実行す
るとエラーになります.

"#!" があるかどうかの判定が逆になってる気がします.
いちおうこうすると期待通りに動きます.

ひょっとして sharp-bang が使える環境では #! の行は処理しない
ようにしたかったのかな?

-- 
わたなべひろふみ

--- ruby.c.orig	Mon Oct 13 13:10:40 1997
+++ ruby.c	Sun Oct 19 14:13:18 1997
@@ -438,4 +438,4 @@
 		if (RSTRING(line)->len > 2
-		    || RSTRING(line)->ptr[0] != '#'
-		    || RSTRING(line)->ptr[1] != '!') {
+		    && RSTRING(line)->ptr[0] == '#'
+		    && RSTRING(line)->ptr[1] == '!') {
 		    if (strstr(RSTRING(line)->ptr, "ruby")) {
@@ -455,4 +455,4 @@
 	    if (RSTRING(line)->len > 2
-		|| RSTRING(line)->ptr[0] != '#'
-		|| RSTRING(line)->ptr[1] != '!') {
+		&& RSTRING(line)->ptr[0] == '#'
+		&& RSTRING(line)->ptr[1] == '!') {
 

In This Thread

Prev Next