Bug #3356: Add GetShortPathName to ruby
http://redmine.ruby-lang.org/issues/show/3356

Author: Christian Höltje
Status: Open, Priority: Normal
Category: lib
ruby -v: ruby 1.9.1p378 (2010-01-10) [i386-mswin32_80]

Hi!

I use Ruby on windows and it would be really useful to have access to GetShortPathName in ruby.

I have a monkey-patch to add Pathname.shortpath (attached) to demonstrate it.  Probably realpath, etc. should take this in to account as well, since in windows, only the shortpath is canonical.

In addition, the shortpath doesn't need to be escaped, so you can use it with backticks (`), etc.

Ciao!


----------------------------------------
http://redmine.ruby-lang.org