title: Simple rvm gui manager application
body: <p>I'm trying to write a simple gui application to manage ruby version manager.</p>
  
  <p>I started with some stuff like testing how ruby's <code>%x[ ]</code> works..</p>
  
  <p>I made this function </p>
  
  <pre><code>def do ( command )
    %x[#{command}]
  end
  </code></pre>
  
  <p>but if I try to use this function with one of the rvm commands like <code>rvm list</code> or <code>rvm -v i</code> get </p>
  
  <blockquote>
    <p>a command not found: error.</p>
  </blockquote>
  
  <p>The same function used with another command like <code>"ls -l"</code> or <code>rm -rf /*</code> XD  works correctly</p>
  
  <p>Can someone explain to me why I get this error?</p>