Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 $?                                                                                                         
1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.