Use /usr/bin/env
In any (shell, perl, python, etc... ) script, it starts with a 'she-bang' line. Usually, we use something like this:
#!/bin/bash # for shell script
#!/usr/bin/python # for python
We can use /usr/bin/env instead! This will give you more flexible. Just like this:
#!/usr/bin/env python
Written by Chao YANG
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#