Re: shebanged script not executed right - wth
- In reply to: Richard M Kreuter : "Re: shebanged script not executed right - wth"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 10 Aug 2025 06:59:07 UTC
Richard M Kreuter <kreuter@progn.net> writes: > Here's how I tried to emulate the OP's report. It seems consistent > with the idea that a script cannot be a shebang interpreter. But I > must be mistaken, as you've found otherwise. What am I missing or > misunderstanding? Nothing. I didn't find otherwise. The kernel returns ENOEXEC if it encounters a second level of indirection, but the shell (or libc) may react to that by trying to execute the program as a shell script, which may or may not work. DES -- Dag-Erling Smørgrav - des@FreeBSD.org