On Mon, 24 Nov 2003 18:30:05 +0100, Tim Kynerd wrote: > On Mon, 24 Nov 2003 09:31:54 +0100, Robert Klemme wrote: > > >> "Tim Kynerd" <vxbrw58s02 / sneakemail.com> schrieb im Newsbeitrag >> news:pan.2003.11.24.07.03.02.137518 / kynerd.no-ip.com... -snip- >>> Also, a trip to /usr/src tells me I'm running kernel 2.4.20. >> >> Is that the same as "uname -a" reports? > > Thanks, couldn't remember how to do that! :-) > > uname -a reports: > > Linux kynerd 2.4.20-4GB #1 Wed Aug 6 18:26:21 UTC 2003 i686 unknown > unknown GNU/ Linux More data about this problem. Namely: It doesn't appear when I run this program in Ruby without the debugger, only when I use the debugger. ------------ Here I've entered the same lines in irb: xxx@kynerd:~> irb -v irb 0.7.4(01/05/08) xxx@kynerd:~> irb irb(main):001:0> newdir = "/" => "/" irb(main):002:0> Dir.chdir(newdir) => 0 irb(main):003:0> Dir.getwd => "/" irb(main):004:0> exit xxx@kynerd:~> ------------ Here I run a similar program in Ruby without the debugger. I used "cat" to show the program itself first. xxx@kynerd:~> cat chdir_test.rb newdir = "/" Dir.chdir(newdir) nowdir = Dir.getwd puts nowdir xxx@kynerd:~> ruby chdir_test.rb / xxx@kynerd:~> ------------ And finally, I run the same program with the debugger: timk@kynerd:~> ruby -r debug chdir_test.rb Debug.rb Emacs support available. chdir_test.rb:1:newdir = "/" (rdb:1) nil (eval):1:wrong argument type nil (expected String) from chdir_test.rb:1 (rdb:1) q Really quit? (y/n) y timk@kynerd:~> ------------ It would seem that there is simply something wrong with the debugging library. I'm thinking of either re-installing or upgrading Ruby to fix this. Any other ideas? Again, ruby -v returns: ruby 1.6.8 (2002-12-24) [i686-linux] -- Tim Kynerd Sundbyberg (sméÔtan i storstan), Sweden tkynerd / spamcop.net Sunrise in Stockholm today: 8:07 Sunset in Stockholm today: 15:01 My rail transit photos at http://www.kynerd.nu