4 ms·
That's a different problem, though. /bin/sh must point to a sh-compatible shell. fish is not a sh-compatible shell. Therefore, any script using /bin/sh will nev
by eridius 12y ago
That's a different problem, though. /bin/sh must point to a sh-compatible shell. fish is not a sh-compatible shell. Therefore, any script using /bin/sh will never attempt to run as fish (as /bin/sh will never point to fish).
The reason I'm having a hard time imagining how a scripting system that relies on bash would fail with fish is because I can't imagine how one would actually write a script that is executed with the user's login shell. There's no #! line that would do that by accident.
- rquirk 12y agoThere's just one scenario: a completely absent #! line. It's an easy fix, just add the line, otherwise 0755 scripts with no #! do execute using the current shell.
- eridius 11y agoThat doesn't work for me (in Fish). > cat foo echo wat > ./foo Failed to execute process './foo'. Reason: exec: Exec format error The file './foo' is marked as an executable but could not be run by the operating system. It does however work in Bash. So this appears to be a bash-ism, rather than an OS feature.
- rquirk 11y agoAh, bummer. I tested in csh too but not fish.