pkgfile icon indicating copy to clipboard operation
pkgfile copied to clipboard

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

Open jhasse opened this issue 9 years ago • 2 comments

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.

jhasse avatar Oct 31 '16 13:10 jhasse

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

falconindy avatar Oct 31 '16 13:10 falconindy

Yes, _WIN32 is only definied on Windows.

jhasse avatar Oct 31 '16 13:10 jhasse