# Strange IRB problem

**URL:** <https://www.ruby-forum.com/t/strange-irb-problem/159680>\
**Category:** Rails\
**Created:** [February 7, 2009, 2:08am UTC](https://www.ruby-forum.com/t/strange-irb-problem/159680 "2009-02-07T02:08:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![doug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dbc845/32.png) [@doug](https://www.ruby-forum.com/u/doug)\
**Post date:** [February 7, 2009, 2:08am UTC](https://www.ruby-forum.com/t/strange-irb-problem/159680/1 "2009-02-07T02:08:07Z")

</div>

very strange…  
I’m on Vista and updated to Rails 2.2.2 and rubygems 1.3.1 with the  
usual problem there.  
…but that’s well documented…

everything was fine…but then I tried the irb console.  
in every shell I have (netbeans, git bash, windows shell)  
I got this result:

* * *

Doug@APOLLO /c/projects/work/MathCraze  
$ script/console  
Loading development environment (Rails 2.2.2)

c:\projects\work\MathCraze\>#@echo off  
‘#@echo’ is not recognized as an internal or external command,  
operable program or batch file.

c:\projects\work\MathCraze\>#goto endofruby  
‘#goto’ is not recognized as an internal or external command,  
operable program or batch file.

c:\projects\work\MathCraze\>#!/bin/ruby  
‘#!’ is not recognized as an internal or external command,  
operable program or batch file.

c:\projects\work\MathCraze\>#  
‘#’ is not recognized as an internal or external command,  
operable program or batch file.

c:\projects\work\MathCraze\># irb.rb - intaractive ruby  
‘#’ is not recognized as an internal or external command,  
operable program or batch file.

c:\projects\work\MathCraze\># $Release Version: 0.9.5 $  
‘#’ is not recognized as an internal or external command,  
operable program or batch file.

c:\projects\work\MathCraze\># $Revision: 1.2.2.1 $  
‘#’ is not recognized as an internal or external command,  
operable program or batch file.

c:\projects\work\MathCraze\># $Date: 2005/04/19 19:24:56 $  
‘#’ is not recognized as an internal or external command,  
operable program or batch file.

c:\projects\work\MathCraze\># by Keiju ISHITSUKA(keiju@ruby-  
[lang.org](http://lang.org))  
‘#’ is not recognized as an internal or external command,  
operable program or batch file.

c:\projects\work\MathCraze\>#  
‘#’ is not recognized as an internal or external command,  
operable program or batch file.

## c:\projects\work\MathCraze\>require “irb” ‘require’ is not recognized as an internal or external command, operable program or batch file. The syntax of the command is incorrect. c:\projects\work\MathCraze\>if **FILE** == $0

In Netbeans (6.5), while the Rails Console gives similiar output,  
however,  
the Ruby IRB sort of “worked”, but I had to load the environment  
manually.  
…see below…

=======================================================================  
.irbrc successfully loaded

> > load ‘config/environment.rb’  
> > load ‘config/environment.rb’

=\> true

> > u = User.new  
> > u = User.new

=\> #\<User id: nil, login: nil, crypted\_password: nil, password\_salt:  
nil, persistence\_token: nil, login\_count: nil, last\_request\_at: nil,  
last\_login\_at: nil, current\_login\_at: nil, last\_login\_ip: nil,  
current\_login\_ip: nil, created\_at: nil, updated\_at: nil\>

> > f = FlashCardGame.new  
> > f = FlashCardGame.new

=\> #\<FlashCardGame:0x5c86d4c @y=98, @x=75, @answer=173\>

> >

=====================================================================

ANY Ideas?

---

<div class="post-metadata">

**Author:** ![doug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dbc845/32.png) [@doug](https://www.ruby-forum.com/u/doug)\
**Post date:** [February 7, 2009, 4:54am UTC](https://www.ruby-forum.com/t/strange-irb-problem/159680/2 "2009-02-07T04:54:47Z")

</div>

Don’t u need to type ruby in front of ruby scripts on windows!?

Blog: [http://random8.zenunit.com/](http://random8.zenunit.com/)  
Learn rails: [http://sensei.zenunit.com/](http://sensei.zenunit.com/)

---

<div class="post-metadata">

**Author:** ![doug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dbc845/32.png) [@doug](https://www.ruby-forum.com/u/doug)\
**Post date:** [February 7, 2009, 6:00am UTC](https://www.ruby-forum.com/t/strange-irb-problem/159680/3 "2009-02-07T06:00:49Z")

</div>

On Feb 6, 7:53 pm, Julian L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Don’t u need to type ruby in front of ruby scripts on windows!?
> 
> Blog:[http://random8.zenunit.com/](http://random8.zenunit.com/)  
> Learn rails:[http://sensei.zenunit.com/](http://sensei.zenunit.com/)

Yeah, I used to have to do that…especially in the DOS shell.  
not sure why that changed.

but in this case it doesn’t make any difference.
