easyoptions
easyoptions copied to clipboard
Update shebang
As stated here:
https://www.cyberciti.biz/tips/finding-bash-perl-python-portably-using-env.html
... I've updated its shebang to make the script portable.
- The appropriate change would be to remove the
#!
line entirely, since it's not a program that you run, but rather a module that you include from within another script. - The advice to use
#!/usr/bin/env
is flawed, but unfortunately very widespread. The "correct" action is for the admin user to set the shebang line upon installation, when you know what the path tobash
will be, and not to leave it to runtime whenPATH
may or may not be secure. And definitely not to leave it in place when root is running it on behalf of some other user.
See gist 8130030 for a tool that can automate setting the shebang.
Thank you for this feedback! "If you learn something new every day, you can teach something new every day". So, should I submit a new one without the shebang?