From: Heesob Park Date: 2009-08-28T17:28:22+09:00 Subject: Re: # sign does not work as expected form irb Hi, 2009/8/27 Salvador Sanjuan : > I have just started Ruby. I have tried to do some exercises usin irb but > this is what happens if I write the following code msg = "Hello " > #{name} ": > > > irb
:157:0> #msg "Hello, > irb
:158:0>* > > As as soon as I enter the # sign after the Hello it moves to the > beggining of the line and a new line appears. > > My computer works with Windows XP. > > How can I change the way the # sign works+ I guess your ruby is 1.8.6 OCI version. This problem is due to the bug of readline.dll(Readline-4.3-2). The behavior is "rl_insert_comment". Try following: 1. Create a file named "inpurc" in your ruby binary directory with the content "\M-#": "#" 2. Create an environment variable in the System Properties->Advanced Tab->Environment Variables area called INPUTRC and set it to c:\ruby\bin\inputrc Regards, Park Heesob