Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Aug 2025 14:51:02 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        questions@freebsd.org
Subject:   Re: shebanged script not executed right - wth
Message-ID:  <865xew1ww9.fsf@ltc.des.dev>
In-Reply-To: <86a5481xax.fsf@ltc.des.dev> ("Dag-Erling =?utf-8?Q?Sm=C3=B8r?= =?utf-8?Q?grav=22's?= message of "Sat, 09 Aug 2025 14:42:14 %2B0200")
References:  <N2fQGG8xsXO132Bf@aceecat.org> <38974.1754741865@ruk.vpn.home.arpa> <86a5481xax.fsf@ltc.des.dev>

index | next in thread | previous in thread | raw e-mail

Dag-Erling Smørgrav <des@FreeBSD.org> writes:
> Richard M Kreuter <kreuter@progn.net> writes:
> > I believe that on FreeBSD (and probably most Unices, historically), the
> > pathname after "#!" must resolve to an executable binary, [...]
> Correct.

OK, that _used_ to be the answer, but on closer inspection, there is
nothing in the code to prevent it from working, and it does seem to work
on 13, 14, and 15.  I'll have to take a closer look at the OP.

DES
-- 
Dag-Erling Smørgrav - des@FreeBSD.org


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?865xew1ww9.fsf>