summaryrefslogtreecommitdiffstats
path: root/query/realpath/src/realpath.rb
blob: 8e19785b142fb01480cf5276b4c54f4d600f1a50 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env ruby

begin
  $stdout.print File.realpath(ARGV[0])
  $stdout.print "\n"
rescue Exception => err
  $stderr.print err
  $stderr.print "\n"
  exit 1
end