10 ms·
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 (a
by sorbits 17y ago
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"