On 20/01/11 5:51 PM, Christian Brabandt wrote:
On Thu, January 20, 2011 4:53 am, Ben Schmidt wrote:
Wow! Does this really work on Windows? It will actually rename the .tcl
files to
.tcp files with the corresponding basename? If it does, it's a pretty
interesting
special case, IMHO. A useful one, but I wonder how dangerous. If it does
work,
it's probably the only example I've ever seen of Windows' commandline
handling
being useful (as opposed to the Unix way of having the shell expand
wildcards).
Yes that works, because in windows every command handles globbing
itsself and not the shell, IIRC.
Yeah, it does. Every command does its argument separation itself, too.
The Windows APIs only supply the commandline as a string (though the C
library of whatever compiler you're using will have some standard way of
doing this--mind you, it isn't consistent between libraries, and
therefore not consistent between apps, which is a pain). Unless
something changed in the last few years, which I don't think it has.
I just never knew the rename command would actually work like that.
Fascinating.
Ben.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php