falconindy / pkgfile

an alpm .files metadata explorer
MIT License
96 stars 20 forks source link

`--binaries` should automatically add .exe on Windows #27

Open jhasse opened 8 years ago

jhasse commented 8 years ago

Using fish on Windows via MSYS2 the automatic suggestion to install the correct package only works when typing the full binary name, including .exe, see https://github.com/fish-shell/fish-shell/issues/3428.

As it calling binaries on Windows works with and without the .exe extension, it would be great if pkgfile handled this automatically.

falconindy commented 8 years ago

Is there a preprocessor macro I can use to detect compilation on windows? I don't think this should be done for unixy installs.

jhasse commented 8 years ago

Yes, _WIN32 is only definied on Windows.