title: -bash: !/usr/bin/env: event not found
body: <p>I got this strange error message trying to write shebang to a python script:</p>
  <pre><code>$ echo &quot;#!/usr/bin/env python&quot; &gt; scripts/sandbox.py 
  -bash: !/usr/bin/env: event not found
  
  $ echo &quot;say what?&quot; &gt; scripts/sandbox.py
  </code></pre>
  <p>Immediately doing the same thing but without using shebang line works. What is this behavior and how can it be overcome?</p>