[Scons-dev] Windows executables

2016-09-20 Thread William Blevins
Team,

I have a really dumb question (probably).

Some of the SCons tests that execute binaries have code to check whether or
not the platform is win32. If win32, then add ".exe" extension to the
executable name. Is this a requirement or just a convention?

Can you not run an executable on Windows that doesn't have the extension?

V/R,
William
___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


Re: [Scons-dev] Windows executables

2016-09-20 Thread Jonathon Reinhart
On Tue, Sep 20, 2016 at 9:22 PM, William Blevins 
wrote:

> Can you not run an executable on Windows that doesn't have the extension?


You're not a Windows user, are you? :-)

The general answer is no: It must have a .exe extension to run via
double-clicking in Explorer, or by providing the path in a Command prompt.

Exceptions include .bat and .com files, but these don't really count for
what you're asking.

Regards,
Jonathon
___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


Re: [Scons-dev] Windows executables

2016-09-20 Thread William Blevins
No... and thanks. The windows mentality just confuses me honestly.

On Tue, Sep 20, 2016 at 9:32 PM, Jonathon Reinhart <
jonathon.reinh...@gmail.com> wrote:

>
> On Tue, Sep 20, 2016 at 9:22 PM, William Blevins 
> wrote:
>
>> Can you not run an executable on Windows that doesn't have the extension?
>
>
> You're not a Windows user, are you? :-)
>
> The general answer is no: It must have a .exe extension to run via
> double-clicking in Explorer, or by providing the path in a Command prompt.
>
> Exceptions include .bat and .com files, but these don't really count for
> what you're asking.
>
> Regards,
> Jonathon
>
> ___
> Scons-dev mailing list
> Scons-dev@scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>
___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


Re: [Scons-dev] Windows executables

2016-09-21 Thread anatoly techtonik
On Wed, Sep 21, 2016 at 4:22 AM, William Blevins  wrote:
> Team,
>
> I have a really dumb question (probably).

Dumb questions are the most interesting. =)

> Some of the SCons tests that execute binaries have code to check whether or
> not the platform is win32. If win32, then add ".exe" extension to the
> executable name. Is this a requirement or just a convention?
>
> Can you not run an executable on Windows that doesn't have the extension?

Native Windows file systems doesn't have flag that marks file as
executable, so it uses file extension to figure that out. Well, you
still can specify custom commands to run for specific extensions
http://stackoverflow.com/a/1936078/239247
___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


Re: [Scons-dev] Windows executables

2016-09-21 Thread William Blevins
That actually explains a lot. I figured it was more of a convention than a
requirement. Glad I asked.

V/R,
William

On Wed, Sep 21, 2016 at 5:42 AM, anatoly techtonik 
wrote:

> On Wed, Sep 21, 2016 at 4:22 AM, William Blevins 
> wrote:
> > Team,
> >
> > I have a really dumb question (probably).
>
> Dumb questions are the most interesting. =)
>
> > Some of the SCons tests that execute binaries have code to check whether
> or
> > not the platform is win32. If win32, then add ".exe" extension to the
> > executable name. Is this a requirement or just a convention?
> >
> > Can you not run an executable on Windows that doesn't have the extension?
>
> Native Windows file systems doesn't have flag that marks file as
> executable, so it uses file extension to figure that out. Well, you
> still can specify custom commands to run for specific extensions
> http://stackoverflow.com/a/1936078/239247
> ___
> Scons-dev mailing list
> Scons-dev@scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev