std.path.getName(): Screwy by design?

Kagamin spam at here.lot
Fri Mar 4 00:08:25 PST 2011


Jérôme M. Berger 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.

I think, the same happens on unix. Is the script to be flagged executable to be run, just like any other runnable file?


More information about the Digitalmars-d mailing list