Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (11 sloc) 228 Bytes
#!/usr/bin/env ruby
ME = File.basename($0)
unless (filename = ARGV.first) && ARGV.size == 1
abort "usage: #{ME} filename"
end
require 'pathname'
begin
puts Pathname.new(filename).realpath
rescue
abort "#{ME}: #{$!}"
end