I've installed mill
on arch linux with fish as my default shell. Since the file /usr/bin/mill
doesn't start with a shebang, fish won't execute the file. Instead it responds with
$ mill
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 can execute mill with bash -c 'mill'
but I don't want to be doing that all the time. Nor do I want to add that as an alias just for mill. Is it possible to configure fish to always use sh or bash when there isn't a shebang in the script instead of failing? Or maybe there is an operating system level problem?
edit: Mill is just an example. I've encountered this feature of fish numerous times with different scripts that I shouldn't be editing. That's why I'm looking for a way to forever avoid the feature not a one off fix for just mill.
alias mill 'bash /usr/bin/mill'; funcsave mill
is all it takes. – glenn jackman Jul 03 '19 at 19:25mill
is just an example problem. – cheezsteak Jul 03 '19 at 19:39