Installed binary does not run when using fish shell
Task Info (Flyspray) | |
---|---|
Opened By | diazkun (diaz) |
Task ID | 63112 |
Type | Bug Report |
Project | Community Packages |
Category | Packages |
Version | None |
OS | All |
Opened | 2019-07-06 23:54:50 UTC |
Status | Assigned |
Assignee | Felix Yan (felixonmars) |
Details
Description:
The installed mill binary at /usr/bin/mill does not include by default a shebang to be run under.
Under fish shell after installing the package and trying to run it the following error appears:
Failed to execute process '/usr/bin/mill'. Reason: exec: Exec format error The file '/usr/bin/mill' is marked as an executable but could not be run by the operating system.
I thought it was a general error, but found it is really just because of fish as described here - https://github.com/lihaoyi/Ammonite/issues/813
Under the manual instructions at http://www.lihaoyi.com/mill/index.html#manual a shebang is added to thee binary/script.
The installed package should do the same for it to work as expected.
Additional info:
- package version(s) - affects current version or any other packaged in the same way
- link to upstream bug report, if any - https://github.com/lihaoyi/Ammonite/issues/813
Steps to reproduce:
- be using fish shell
- install with pacman -S mill
- try to run and get the error message about "exec: Exec format error"