Shebang error: Use /path/to/fish

Otherwise this looks like `#! fish` is a valid shebang, which it is
not. We don't interpret $PATH here, and the kernel typically doesn't.
This commit is contained in:
Fabian Homborg
2021-12-30 12:35:00 +01:00
parent 084967e560
commit 2c03cfecba

View File

@@ -430,7 +430,7 @@ void safe_report_exec_error(int err, const char *actual_cmd, const char *const *
if (0 == strcmp(lastdot, ".fish")) {
FLOGF_SAFE(exec,
"fish scripts require an interpreter directive (must start with "
"'#! fish').");
"'#!/path/to/fish').");
}
}
} else {