# Irb problem in OSX

**URL:** <https://www.ruby-forum.com/t/irb-problem-in-osx/66368>\
**Category:** Ruby\
**Created:** [February 13, 2006, 1:23am UTC](https://www.ruby-forum.com/t/irb-problem-in-osx/66368 "2006-02-13T01:23:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 13, 2006, 1:23am UTC](https://www.ruby-forum.com/t/irb-problem-in-osx/66368/1 "2006-02-13T01:23:32Z")

</div>

I’m not sure how I got into this situation being a Mac newbie, but I  
think it started after running one of the various “fix ruby on OS X”  
scripts.

The problem is, everytime I click on my Terminal shortcut on the dock,  
it jumps directly into irb. I have to type “exit” to go back to the  
bash shell.

Anyone know how I might fix this?

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 13, 2006, 1:39am UTC](https://www.ruby-forum.com/t/irb-problem-in-osx/66368/2 "2006-02-13T01:39:30Z")

</div>

On Feb 12, 2006, at 6:23 PM, removed\_email\_address@domain.invalid wrote:

> I’m not sure how I got into this situation being a Mac newbie, but I  
> think it started after running one of the various “fix ruby on OS X”  
> scripts.
> 
> The problem is, everytime I click on my Terminal shortcut on the dock,  
> it jumps directly into irb. I have to type “exit” to go back to the  
> bash shell.
> 
> Anyone know how I might fix this?

Check for something goofy in the file ~/.profile.

James Edward G. II

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 13, 2006, 2:03am UTC](https://www.ruby-forum.com/t/irb-problem-in-osx/66368/3 "2006-02-13T02:03:10Z")

</div>

On Feb 13, 2006, at 0:39, James Edward G. II wrote:

> > bash shell.
> > 
> > Anyone know how I might fix this?
> 
> Check for something goofy in the file ~/.profile.

Check Terminal’s preferences as well, it can be set to run particular  
commands on startup.

Another thought is: is your dock shortcut to the actual Terminal  
application, or to a Terminal file?

matthew smillie.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 13, 2006, 3:48am UTC](https://www.ruby-forum.com/t/irb-problem-in-osx/66368/4 "2006-02-13T03:48:31Z")

</div>

I don’t see anything in ~/.profile except some export line to set the  
path. I’m not sure where .bashrc or .bash\_profile would be located…

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 13, 2006, 4:25am UTC](https://www.ruby-forum.com/t/irb-problem-in-osx/66368/5 "2006-02-13T04:25:05Z")

</div>

DÅ?a Pondelok 13 FebruÃ¡r 2006 03:48 removed\_email\_address@domain.invalid napÃ­sal:

> I don’t see anything in ~/.profile except some export line to set the  
> path. I’m not sure where .bashrc or .bash\_profile would be located…

In the same place as .profile. It’s nothing strange not to have any of  
those.

David V.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 13, 2006, 2:03am UTC](https://www.ruby-forum.com/t/irb-problem-in-osx/66368/6 "2006-02-13T02:03:39Z")

</div>

removed\_email\_address@domain.invalid wrote:

> I’m not sure how I got into this situation being a Mac newbie, but I  
> think it started after running one of the various “fix ruby on OS X”  
> scripts.
> 
> The problem is, everytime I click on my Terminal shortcut on the dock,  
> it jumps directly into irb. I have to type “exit” to go back to the  
> bash shell.
> 
> Anyone know how I might fix this?

Is is possible that you added ‘irb’ to one of your shell start-up  
scripts, such as .profile, .bashrc or .bash\_profile?

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 13, 2006, 5:38am UTC](https://www.ruby-forum.com/t/irb-problem-in-osx/66368/7 "2006-02-13T05:38:48Z")

</div>

Yeah, I don’t have 'em then I guess.

I think it must be something like that. If I’m quick enough, I can  
clearly see “clear; irb” when I open a shell just before it drops into  
irb.

I just don’t know how to find out where it’s coming from…

Thanks for the help btw.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [February 13, 2006, 1:33pm UTC](https://www.ruby-forum.com/t/irb-problem-in-osx/66368/8 "2006-02-13T13:33:45Z")

</div>

removed\_email\_address@domain.invalid wrote:

> Yeah, I don’t have 'em then I guess.
> 
> I think it must be something like that. If I’m quick enough, I can  
> clearly see “clear; irb” when I open a shell just before it drops into  
> irb.
> 
> I just don’t know how to find out where it’s coming from…
> 
> Thanks for the help btw.

The section called “INVOCATION” in the bash man page describes all the  
scripts that bash can read during startup, and where it looks for them.  
Keep in mind that these scripts can call other scripts.

Good hunting!
