From 3aaf385f29b0f9c8bc815347f92890b2542cf1e1 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 10 Sep 2011 03:50:49 +0200 Subject: //query realpath.rb: initial import From: https://github.com/pfleidi/dotfiles/blob/master/bin/realpath --- query/realpath/src/realpath.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 query/realpath/src/realpath.rb (limited to 'query/realpath') diff --git a/query/realpath/src/realpath.rb b/query/realpath/src/realpath.rb new file mode 100755 index 00000000..8e19785b --- /dev/null +++ b/query/realpath/src/realpath.rb @@ -0,0 +1,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 -- cgit v1.2.3