Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently having the following problem:

Some of my ruby/rbenv commands commands (e.g.: bundle exec irb, rbenv rehash) fail when executing.

However I don't get any error output:

[~]$ bundle exec irb                                                                                                
[~]$ echo $?                                                                                                         

I use zsh (via oh-my-zsh) but switching to bash didn't solve the problem.

Is there a way to see the error output from the last command?

share|improve this question
This looks like you have STDERR redirected somewhere other than the terminal. – vgoff Nov 20 '12 at 1:02
This might be the case. How can see where STDERR is redirected? – leifg Nov 20 '12 at 10:55
I am unsure what else is in your environment, but whatever it is, it may be changing the value of $stderr to a file or a log. Open up IRB and check the value of $stderr to get a hint of where it may be redirected to. – vgoff Nov 20 '12 at 20:03

You must log in to answer this question.

Browse other questions tagged .