FileTest.identical? with IO

e$B$3$s$P$s$Oe(B sheepman e$B$G$9!#e(B

FileTest.identical? e$B$K$O0z?t$H$7$Fe(B IO
e$B%*%V%8%’%/%H$bEO$9$3$H$,e(B
e$B$G$-$^$9!#$7$+$7e(B IO
e$B$,DL>o%U%!%$%k$N$=$l$+$r8!::$7$F$$$^$;$s!#$G$9$N$G!"e(B
e$B0J2<$N$h$&$J$3$H$,5/$3$C$F$7$^$$$^$9!#e(B

$ cat t.rb
p FileTest.identical?($stdin, $stdout)

$ ruby-1.8 -v t.rb
ruby 1.8.6 (2007-09-01 patchlevel 5000) [i686-linux]
true

e$B$3$l$O$3$&$$$&$b$N$J$N$G$7$g$&$+!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:31740] FileTest.identical? with IO”
on Wed, 5 Sep 2007 21:41:51 +0900, sheepman
[email protected] writes:

|FileTest.identical? e$B$K$O0z?t$H$7$Fe(B IO e$B%*%V%8%’%/%H$bEO$9$3$H$,e(B
|e$B$G$-$^$9!#$7$+$7e(B IO e$B$,DL>o%U%!%$%k$N$=$l$+$r8!::$7$F$$$^$;$s!#$G$9$N$G!"e(B
|e$B0J2<$N$h$&$J$3$H$,5/$3$C$F$7$^$$$^$9!#e(B
|
|$ cat t.rb
|p FileTest.identical?($stdin, $stdout)
|
|$ ruby-1.8 -v t.rb
|ruby 1.8.6 (2007-09-01 patchlevel 5000) [i686-linux]
|true
|
|e$B$3$l$O$3$&$$$&$b$N$J$N$G$7$g$&$+!#e(B

e$BG:$^$7$$$H$3$m$G$9$M!#e(B

% miniruby -e ‘p FileTest.identical?($stdin, $stdout)’
true
% miniruby -e ‘p FileTest.identical?($stdin, $stdout)’ < /dev/null
false

e$B$H$$$&7k2L$r8+$F$k$H$=$l$G$b$$$$$h$&$J5$$,$7$F$-$^$9!#e(B

e$B$5$H$&$U$_$d$9e(B @ OSS e$B%F%/%N%m%8$G$9!#e(B

Could not be delivered to [email protected]

As the remote domain doesnt [email protected]$o$l$?$N$G:F;n9T!#2?8Ne(B?

At Wed, 5 Sep 2007 21:41:51 +0900,
sheepman wrote:

e$B$3$l$O$3$&$$$&$b$N$J$N$G$7$g$&$+!#e(B

e$B$=$&$$$&$b$N$8$c$J$$$G$7$g$&$+e(B?

$ ruby -e ‘p $stdin.stat; p $stdout.stat’

dev, ino, rdev e$B$,F10le(B (e$BF10l$NC<Kv%G%P%$%9%U%!%$%ke(B)
e$B$J$s$G$9$+$i!#e(B

$ ruby -e ‘p $stdin.stat; p $stdout.stat’ |tee /dev/null
$ ruby -e ‘p $stdin.stat; p $stdout.stat’ < /dev/null

e$B$3$s$P$s$O!"e(Bsheepman e$B$G$9!#e(B

On Thu, 6 Sep 2007 10:42:15 +0900
SATOH Fumiyasu [email protected] wrote:

e$B$=$&$$$&$b$N$8$c$J$$$G$7$g$&$+e(B?

$ ruby -e ‘p $stdin.stat; p $stdout.stat’

dev, ino, rdev e$B$,F10le(B (e$BF10l$NC<Kv%G%P%$%9%U%!%$%ke(B)
e$B$J$s$G$9$+$i!#e(B

e$B$J$k$[$I!"$o$+$j$^$7$?!#$"$j$,$H$&$4$6$$$^$9!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs