From: "luislavena (Luis Lavena)" Date: 2012-11-21T00:17:14+09:00 Subject: [ruby-core:49766] [ruby-trunk - Feature #3356] Add GetShortPathName to ruby Issue #3356 has been updated by luislavena (Luis Lavena). Assignee set to usa (Usaku NAKAMURA) Hello, AFAIK shortnames might not be available on some NTFS volumes, under some circumstances I found is off for performance. Shortname version of a filename is not canonical, is just one of many representations of a file in the filesystem. If the intention is use short_name to be able to shell out, why not improve Windows support on ShellWords so it properly escapes the path instead? We keep improving Ruby on Windows to properly support long names and path with spaces that adding this seems counter productive from my point of view. I'm assigning to Nakamura-san for decision. Thank you. ---------------------------------------- Feature #3356: Add GetShortPathName to ruby https://bugs.ruby-lang.org/issues/3356#change-33348 Author: docwhat (Christian H��ltje) Status: Feedback Priority: Low Assignee: usa (Usaku NAKAMURA) Category: lib Target version: next minor =begin 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! =end -- http://bugs.ruby-lang.org/