Mail Archives: cygwin/2010/06/10/06:15:32
Greetings, Julio Costa!
>>>And this is where my head got reeeally spinning... can anyone, please,
>>>explain the reason to why this .exe magic exists, anyway?
>>
>> It's already been explained in this very thread.
>>
> I'm must be getting pretty dense.
> The only explanation I already had seen was from Eric Blake:
> "(...) but Windows insists on having the .exe suffix for cmd to be
> able to run an executable (...)"
> That was already been explained, in other occasions, and also in the
> thread indicated by myself.
> The point is, that *is not* a reason, because it is easily fixed by
> "set PATHEXE=%PATHEXE%:.".
> Demo:
> = - = - = - = - = - = -
That's nice one, as has been pointed, but let's make a step back to the
definitions and see what we have on hand, before advancing in this way?
"Extension is a part of the file name, after last period".
Two conclusions we can make from it:
1. Extension itself can't contain a period.
2. The file can't have an extension only and only if it has no periods in the
name.
Doing this kind of magic, you only ease the burden of file handling for cygwin
in windows, but by a little margin, IMO.
File name could have more dots than what you can imagine...
Also, this same trick could be applied to the Explorer as well.
REGEDIT4
[HKEY_CLASSES_ROOT\.\shell\Open\command]
@="\"%1\" %*"
--
WBR,
Andrey Repin (anrdaemon AT freemail DOT ru) 10.06.2010, <13:57>
Sorry for my terrible english...
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -