Project

General

Profile

Bug #214 » zero.txt

takeru (takeru sasaki), 07/02/2008 02:12 PM

 
tkrmb:~% ruby187 -v
ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-darwin8.11.1]
tkrmb:~% ruby187 zero.rb
zero.rb
PID TT STAT TIME COMMAND
195 pa S+ 0:00.01 ruby187 zero.rb
aaaaaaaaaaa
PID TT STAT TIME COMMAND
195 pa S+ 0:00.01 aaaaaaaaaaa
bbbbbbbbbbbb
PID TT STAT TIME COMMAND
195 pa R+ 0:00.01 bbbbbbbbbbbb
ccccccccccccccc
PID TT STAT TIME COMMAND
195 pa S+ 0:00.01 ccccccccccccccc STY=540.fish
tkrmb:~% ruby187 -rpp zero.rb
zero.rb
PID TT STAT TIME COMMAND
201 pa S+ 0:00.02 ruby187 -rpp zero.rb
aaaaaaaaaaa
PID TT STAT TIME COMMAND
201 pa S+ 0:00.02 aaaaaaaaaaa STY=540.fish
bbbbbbbbbbbb
PID TT STAT TIME COMMAND
201 pa S+ 0:00.02 bbbbbbbbbbbb STY=540.fish
cccccccccccccccccccc
PID TT STAT TIME COMMAND
201 pa S+ 0:00.02 cccccccccccccccccccc STY=540.fish TERM=screen
tkrmb:~% cat zero.rb

puts $0
puts `ps ww -p #{$$}`

$0 = "aaaaaaaaaaa"
puts $0
puts `ps ww -p #{$$}`

$0 = "bbbbbbbbbbbb"
puts $0
puts `ps ww -p #{$$}`

$0 = "ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
puts $0
puts `ps ww -p #{$$}`





tkrmb:~% ruby1.9 -v
ruby 1.9.0 (2008-03-01 revision 15664) [i686-darwin8.11.1]
tkrmb:~% ruby1.9 -rpp zero.rb
zero.rb
PID TT STAT TIME COMMAND
252 pa S+ 0:00.03 ruby1.9 -rpp zero.rb
aaaaaaaaaaa
PID TT STAT TIME COMMAND
252 pa S+ 0:00.03 ruby1.9 -rpp zero.rb
bbbbbbbbbbbb
PID TT STAT TIME COMMAND
252 pa R+ 0:00.03 ruby1.9 -rpp zero.rb
cccccccccccccccccccc
PID TT STAT TIME COMMAND
252 pa S+ 0:00.03 ruby1.9 -rpp zero.rb

    (1-1/1)