Problem with debugger on FreeBSD

Hi, I just upgraded from ports on FreeBSD, and for some reason ruby’s debugger
forces me to enter each command 5 times. Any idea what would cause this?

Thanks,
Travis

travis@aop:~$ uname -a
FreeBSD aop.intranet 4.9-RELEASE-p4 FreeBSD 4.9-RELEASE-p4 #0: Wed Mar 17
16:55:09 EST 2004 root@aop.intranet:/usr/obj/usr/src/sys/MYKERNEL i386
travis@aop:~$ ruby -v
ruby 1.8.1 (2004-05-02) [i386-freebsd4]
travis@aop:~$ cat test.rb
puts "hello"
puts "1"
puts "2"
puts "3"
puts "4"
puts "5"
travis@aop:~$ ruby -r debug test.rb
Debug.rb
Emacs support available.

test.rb:1:puts “hello”
(rdb:1) n
test.rb:1:puts “hello”
(rdb:1)
n
test.rb:1:puts “hello”
(rdb:1)
n
test.rb:1:puts “hello”
(rdb:1)
n
test.rb:1:puts “hello”
(rdb:1)
n
hello
test.rb:2:puts “1”
(rdb:1)
n
test.rb:2:puts “1”
(rdb:1)
n
test.rb:2:puts “1”
(rdb:1)
n
test.rb:2:puts “1”
(rdb:1)
n
test.rb:2:puts “1”
(rdb:1)
n
1

Hmmm… I just swapped the ports source build for a binary package, and it’s
working now. Maybe it’s my compiler.

···

In article slrnc9fs27.5a9.whitton@grub.ath.cx, Travis Whitton wrote:

Hi, I just upgraded from ports on FreeBSD, and for some reason ruby’s debugger
forces me to enter each command 5 times. Any idea what would cause this?

Thanks,
Travis

travis@aop:~$ uname -a
FreeBSD aop.intranet 4.9-RELEASE-p4 FreeBSD 4.9-RELEASE-p4 #0: Wed Mar 17
16:55:09 EST 2004 root@aop.intranet:/usr/obj/usr/src/sys/MYKERNEL i386
travis@aop:~$ ruby -v
ruby 1.8.1 (2004-05-02) [i386-freebsd4]
travis@aop:~$ cat test.rb
puts “hello”
puts “1”
puts “2”
puts “3”
puts “4”
puts “5”
travis@aop:~$ ruby -r debug test.rb
Debug.rb
Emacs support available.

test.rb:1:puts “hello”
(rdb:1) n
test.rb:1:puts “hello”
(rdb:1)
n
test.rb:1:puts “hello”
(rdb:1)
n
test.rb:1:puts “hello”
(rdb:1)
n
test.rb:1:puts “hello”
(rdb:1)
n
hello
test.rb:2:puts “1”
(rdb:1)
n
test.rb:2:puts “1”
(rdb:1)
n
test.rb:2:puts “1”
(rdb:1)
n
test.rb:2:puts “1”
(rdb:1)
n
test.rb:2:puts “1”
(rdb:1)
n
1