nk412 / optparse

Simple command line arguments parser for BASH
MIT License
158 stars 32 forks source link

Do a proper script execution via #!/usr/bin/env #1

Closed dol closed 10 years ago

dol commented 11 years ago

The invocation of a bash script with an absolute path to bash can cause problems on systems with a non-standard non-standard file system layouts. To overcome this issue, use '#!/usr/bin/env'. Good bash best practice source: http://andreinc.net/2011/09/04/bash-scripting-best-practice/