Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7878321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:37:34+00:00 2026-06-03T03:37:34+00:00

This is what happens on a Debian machine $ ruby -e ‘puts something’ something

  • 0

This is what happens on a Debian machine

$ ruby -e 'puts "something"'
something
$

This is what I expected.

However, when I run the same on my Mac (OS X 10.7.3), I get

1.9.3-p125-perf $ ruby -e "puts 'something'"

1.9.3-p125-perf $ ruby -e "print 'something'"
1.9.3-p125-perf $ rbenv shell 1.8.7-p358
1.8.7-p358 $ ruby -e "puts 'something'"

1.8.7-p358 $ ruby -e "print 'something'"
nil1.8.7-p358 $ rbenv shell system
system $ ruby -e "puts 'something'"

system $ ruby -e "print 'something'"
nilsystem $ 

Does anyone know what’s going on here and how I get ruby to output something meaningful again?

My Ruby versions:

1.9.3-p125-perf: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0]

1.8.7-p358: ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-darwin11.3.0]

system: ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]

Scripts or IRB work fine, piping ruby also works:

1.9.3-p125-perf $ cat | ruby
puts "foo"
^D
foo

It’s just the ruby -e that behaves funky.
This also happens on my girlfirends Mac. She uses RVM.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T03:37:36+00:00Added an answer on June 3, 2026 at 3:37 am

    I found the culprit. I was using an old version of bundler-exec.

    bundler-exec creates shell aliases for a predefined list of commands and wraps them in this function:

    run-with-bundler()
    {
        if bundler-installed && within-bundled-project; then
            bundle exec "$@"
        else
            "$@"
        fi
    }
    

    The version I had was missing the quotation marks around the $@ which somehow caused ruby to misbehave.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This happens when I try to run rinari-cap: ~/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require': no such file to
How to fix this error that happens on Debian Linux using ssl commands with
This happens after I hit Build and Go to run my app on my
Sometimes users mistakenly redirected to ?Process=ViewImages&PAGEID=. When this happens, they get the following error.
This happens in Ruby on Rails's View, where there is a hash for another
Can anyone explain why this happens? mybox:$ ruby script/console Loading development environment (Rails 2.3.5)
I'm having issues getting Rake to work on my machine. This only happens from
EDIT : This reproducible SIGSEGV happens on a Linux machine with more than one
This happens in IDLE and Windows 7 RC1 (if that helps). Here is the
I am authenticating users in ldap, but this happens only once, when user is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.