Terminal is Stuck in "cat"

0

A while back I recall attempting to install an updated version of Ruby on my Mac. I had an interest in the language and thought I would give it a go. I followed detailed instructions that lead me through installing macports so I could have access to bash commands. Well, now every time I open up my terminal to use it, it defaults to cat. If I Control + D out, I go into bash, again, and I end up in ruby, once more and I end up in top where it dead-ends. I tried changing my terminals default path to usr/bin/login but after I log in it defaults again to cat no matter what I do. If I force close the processes through the GUI they just reopen. I am at quite the loss here and any help would be appreciated.

mwksl

Posted 2011-09-20T04:53:38.907

Reputation: 1

When you get the system under control again, I recommend (the near-standard) RVM to install Ruby on your system. http://beginrescueend.com/

– slothbear – 2011-09-20T18:50:24.470

Answers

0

I'd try opening a terminal as another user. Assuming that works, check the .profile file (its .bashrc for most other *nixes) for the original user, and remove any mention of cat there

Journeyman Geek

Posted 2011-09-20T04:53:38.907

Reputation: 119 122

0

You can use Terminal > Shell > New Command to run a shell without reading the profile or rc files. In the dialog that appears, enter the following command:

bash --noprofile

Then you can use an editor to examine your shell customizations to address the problem.

Chris Page

Posted 2011-09-20T04:53:38.907

Reputation: 2 793