News for hackers. Stuff that matters.
Re:#!/usr/bin/ruby is for Sysadmins by binarysoul on Sunday February 12, 2012 @03:10PM (#3582838)
shouldn't that be #!/usr/bin/env ruby
Re:#!/usr/bin/ruby is for Sysadmins by naner on Sunday February 12, 2012 @04:50PM (#3583147)
Using absolute paths is still perfectly acceptable. Wikipedia covers the basic benefits/drawbacks:

http://en.wikipedia.org/wiki/Shebang_%28Unix%29#Portability

Re:#!/usr/bin/ruby is for Sysadmins by pyre on Sunday February 12, 2012 @08:37PM (#3583783)
For example, Comix uses #!/usr/bin/env python, even when it's installed by the package manager (at least on Ubuntu). This means that if I launch it from a terminal with a virtualenv enabled, then it blows up because chances are that I don't have pygtk on that virtualenv (because I generally don't work on GUI apps). At the very least, things installed by the package manager should point at the interpreter that is under package management.