From: M_Otake Date: 2000-09-29T02:04:58+09:00 Subject: [ruby-list:25230] mswinでのワイルドカード はじめまして。大竹といいます。 ここ数ヶ月読むだけで精一杯で、やっとRUBYし始めたものです。 で、gets() で質問が有ります。 U:\ABA\Prog\NEWEST>ruby -e "while gets();print $FILENAME+$_; end" obj\c*.h C:\windows\TEMP/rba54131:1:in `gets': No such file or directory - Common_drv_os.h (Errno::ENOENT) from C:\windows\TEMP/rba54131:1 とエラーになります。('.\obj\Common_drv_os.h' は存在します ) エラーをみた感じでは、'obj\' が抜けているような気がするのですが・・・? で、ためしにカレントを移動してみると U:\ABA\Prog\NEWEST>cd obj U:\ABA\Prog\NEWEST\obj>ruby -e "while gets();print $FILENAME+$_; end" c*.h Common_drv_os.hextern void Initdataset_common_drv( void ); : : Common_drv_os.hextern OutputWarn( 1 ); Common_drv_os.hextern OutputWarn( 0 ); cvtcontrol_mdl.hextern unsigned short MVUScne0; cvtcontrol_mdl.hextern unsigned short MVUSvw0; : : と期待どうりの動作となります。(ruby 1.4.6 (2000-08-16) [i586-mswin32]) これは mswin版の仕様なのでしょうか? 1.6.1 でも同様でした。 どうかよろしくお願いします。