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