Skip to content

Instantly share code, notes, and snippets.

@rboyd
Created June 6, 2011 19:57
Show Gist options
  • Select an option

  • Save rboyd/1010962 to your computer and use it in GitHub Desktop.

Select an option

Save rboyd/1010962 to your computer and use it in GitHub Desktop.
bare minimum example of shell_wrapper.sh issue
ubuntu@domU-12-31-39-0F-D4-BF:~$ export set ANYVAR='foo
> bar'
ubuntu@domU-12-31-39-0F-D4-BF:~$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'rvm'
=> true
irb(main):003:0> RVM.list_known_strings
ArgumentError: syntax error on line 25, col 0: `bar'
from /usr/lib/ruby/1.8/yaml.rb:133:in `load'
from /usr/lib/ruby/1.8/yaml.rb:133:in `load'
from /usr/lib/ruby/gems/1.8/gems/rvm-1.6.16/lib/rvm/shell/abstract_wrapper.rb:139:in `raw_stdout_to_parts'
from /usr/lib/ruby/gems/1.8/gems/rvm-1.6.16/lib/rvm/shell/single_shot_wrapper.rb:21:in `run_command'
from /usr/lib/ruby/gems/1.8/gems/rvm-1.6.16/lib/rvm/shell/single_shot_wrapper.rb:44:in `with_shell_instance'
from /usr/lib/ruby/gems/1.8/gems/rvm-1.6.16/lib/rvm/shell/single_shot_wrapper.rb:17:in `run_command'
from /usr/lib/ruby/gems/1.8/gems/rvm-1.6.16/lib/rvm/shell/abstract_wrapper.rb:71:in `run'
from /usr/lib/ruby/gems/1.8/gems/rvm-1.6.16/lib/rvm/environment/utility.rb:67:in `rvm'
from /usr/lib/ruby/gems/1.8/gems/rvm-1.6.16/lib/rvm/environment/list.rb:38:in `list_known_strings'
from /usr/lib/ruby/gems/1.8/gems/rvm-1.6.16/lib/rvm.rb:152:in `__send__'
from /usr/lib/ruby/gems/1.8/gems/rvm-1.6.16/lib/rvm.rb:152:in `method_missing'
from (irb):3
from /usr/local/lib/site_ruby/1.8/rubygems.rb:123
irb(main):004:0> exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment