Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

More portable in that you do not hardcode the path. Ruby, Python, and similar are generally not in the same location across systems.

Unfortunately on Ubuntu (and probably other Linux variants) you can’t pass arguments to the interpreter, e.g. the following gives an error on Ubuntu (works on OpenSolaris, FreeBSD, and OS X):

    #!/usr/bin/env ruby -wKU
    puts "æblegrød"


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: