Came up on IRC, for windows the execute command should have a .exe extension.
Note due to my lack of windows access the win branch of the `#ifdef` has not even been compiled, a winspurt should test and/or comment. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/1305
-- Commit Summary --
* Add windows default for execute command
-- File Changes --
M src/build.c (4)
-- Patch Links --
https://github.com/geany/geany/pull/1305.patch https://github.com/geany/geany/pull/1305.diff
Windows doesn't require the `.exe` suffix to successfully run the program.
Maybe it's interesting in case there is more than one possibility (like same basename with both `bat` and `.exe` extensions?), I have no idea what happens there. But well, if there's a reason to do so, why not.
I think it's better to not use `.exe`, generally only C/C++ and similar languages produce `.exe` files and as @b4n mentioned, it's not required even if the output has an `.exe` extension.
Ok, if more than one extension is executable without specifying the extension, then since this is a language independent default, it should not have the extension.
Closed #1305.
github-comments@lists.geany.org