title: How do I Quit IRB from the command line? (Using terminal on mac)
body: <p>Basically, I'm typing along just fine in terminal, using IRB to run ruby commands:</p>
  
  <pre><code>2.0.0-p0 :014 &gt; bank_account.withdraw(2222)
   =&gt; -1222 
  </code></pre>
  
  <p>But sometimes I accidentally miss out a quotation mark.</p>
  
  <pre><code>2.0.0-p0 :020 &gt; BankAccount.create_for("Jim","Johnson)
  2.0.0-p0 :021"&gt; bank_account.withdraw(333)
  </code></pre>
  
  <p>If you look carefully, you'll see that the speech mark I missed out appears next to the line number on the left, next to the patch version.</p>
  
  <p>From here on in, that speech mark appears everytime I run a command! And it stops the commands working:</p>
  
  <pre><code>2.0.0-p0 :021"&gt; BankAccount.create_for("Julian","Hurley")
  2.0.0-p0 :022"&gt; BankAccount.create_for("Katt","Smith")
  2.0.0-p0 :023"&gt; exec($0)
  </code></pre>
  
  <p>What I want to know is, how do I get rid of that quotation mark? Or quit IRB from the command line in order to reset it?</p>