std.path.getName(): Screwy by design?
Denis Koroskin
2korden at gmail.com
Thu Mar 3 11:05:55 PST 2011
On Thu, 03 Mar 2011 21:47:54 +0300, Jérôme M. Berger <jeberger at free.fr>
wrote:
> Kagamin wrote:
>> Don Wrote:
>>
>>> ??????
>>> It ALWAYS makes a difference. For example, only .exe and .com files are
>>> executable.
>>> On unix, the filename is just a name. Nothing more. By contrast, the
>>> Windows extension actually matters. They're completely different.
>>
>> What do you mean? You can run .js and .vbs files as well.
>
> No you cannot. What happens is that you *open* them with the
> default application, which just happens to be an interpreter whose
> default action is to run the script. Try renaming a .exe into .js
> and it will not run, whereas on Unix it would.
>
> Jerome
Double-click? Yes. Running from console? No.
Didn't believe it until I tried it myself, too.
More information about the Digitalmars-d
mailing list