From 2c03cfecbaa0c1656571836ae1025882ea2376bc Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 30 Dec 2021 12:35:00 +0100 Subject: [PATCH] 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. --- src/postfork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/postfork.cpp b/src/postfork.cpp index 5bf86c2a4..980e72889 100644 --- a/src/postfork.cpp +++ b/src/postfork.cpp @@ -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 {