From: Daniel Berger Date: 2007-01-28T23:31:01+09:00 Subject: Re: Backticks failing in Ruby built with VC++ 8 Eric Hodel wrote: > On Jan 27, 2007, at 20:14, Daniel Berger wrote: >> Eric Hodel wrote: >>> On Jan 27, 2007, at 19:55, Daniel Berger wrote: >>>> Hi all, >>>> >>>> Ruby 1.8.5 p12 >>>> Windows XP SP2 >>>> >>>> I'm getting a segfault when I use the backtick operator in a Ruby >>>> built with VC++ 8: >>>> >>>> pwd = `pwd`.chomp >>>> >>>> It works fine with the one click (VC++ 6). >>>> >>>> Is anyone else seeing this behavior? I want to make sure I haven't >>>> done something silly before officially filing this as a bug report. >>>> If it is a bug, I'm guessing I need to examine the CreateChild >>>> function in Ruby's win32.c file. Please point me to the appropriate >>>> location if that's not correct. >>> >>> Isn't pwd a shell builtin on WinXP? >> Yes. Is that significant? > > It seems to be. > > `ruby -v` works for me, but `pwd` doesn't. As I responded to Nobu, it happens with any command. Besides, 'pwd' works if you're using the Windows PowerShell. :) Dan