Project

General

Profile

Bug #214 » zero.txt

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

 
1
tkrmb:~% ruby187 -v
2
ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-darwin8.11.1]
3
tkrmb:~% ruby187 zero.rb
4
zero.rb  
5
  PID  TT  STAT      TIME COMMAND
6
  195  pa  S+     0:00.01 ruby187 zero.rb
7
aaaaaaaaaaa
8
  PID  TT  STAT      TIME COMMAND
9
  195  pa  S+     0:00.01 aaaaaaaaaaa
10
bbbbbbbbbbbb
11
  PID  TT  STAT      TIME COMMAND
12
  195  pa  R+     0:00.01 bbbbbbbbbbbb
13
ccccccccccccccc
14
  PID  TT  STAT      TIME COMMAND
15
  195  pa  S+     0:00.01 ccccccccccccccc STY=540.fish
16
tkrmb:~% ruby187 -rpp zero.rb
17
zero.rb
18
  PID  TT  STAT      TIME COMMAND
19
  201  pa  S+     0:00.02 ruby187 -rpp zero.rb
20
aaaaaaaaaaa
21
  PID  TT  STAT      TIME COMMAND
22
  201  pa  S+     0:00.02 aaaaaaaaaaa          STY=540.fish
23
bbbbbbbbbbbb
24
  PID  TT  STAT      TIME COMMAND
25
  201  pa  S+     0:00.02 bbbbbbbbbbbb         STY=540.fish
26
cccccccccccccccccccc
27
  PID  TT  STAT      TIME COMMAND
28
  201  pa  S+     0:00.02 cccccccccccccccccccc STY=540.fish TERM=screen
29
tkrmb:~% cat zero.rb
30

    
31
puts $0
32
puts `ps ww -p #{$$}`
33

    
34
$0 = "aaaaaaaaaaa"
35
puts $0
36
puts `ps ww -p #{$$}`
37

    
38
$0 = "bbbbbbbbbbbb"
39
puts $0
40
puts `ps ww -p #{$$}`
41

    
42
$0 = "ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
43
puts $0
44
puts `ps ww -p #{$$}`
45

    
46

    
47

    
48

    
49

    
50
tkrmb:~% ruby1.9 -v
51
ruby 1.9.0 (2008-03-01 revision 15664) [i686-darwin8.11.1]
52
tkrmb:~% ruby1.9 -rpp zero.rb
53
zero.rb
54
  PID  TT  STAT      TIME COMMAND
55
  252  pa  S+     0:00.03 ruby1.9 -rpp zero.rb
56
aaaaaaaaaaa
57
  PID  TT  STAT      TIME COMMAND
58
  252  pa  S+     0:00.03 ruby1.9 -rpp zero.rb
59
bbbbbbbbbbbb
60
  PID  TT  STAT      TIME COMMAND
61
  252  pa  R+     0:00.03 ruby1.9 -rpp zero.rb
62
cccccccccccccccccccc
63
  PID  TT  STAT      TIME COMMAND
64
  252  pa  S+     0:00.03 ruby1.9 -rpp zero.rb
65