std.path.getName(): Screwy by design?
"Jérôme M. Berger"
jeberger at free.fr
Thu Mar 3 10:47:54 PST 2011
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
--
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110303/be3a0efe/attachment.pgp>
More information about the Digitalmars-d
mailing list