Re: shebanged script not executed right - wth

From: Dag-Erling_Smørgrav <des_at_FreeBSD.org>
Date: Sat, 09 Aug 2025 13:27:34 UTC
Michael Sierchio <kudzu@tenebras.com> writes:
> Dag-Erling Smørgrav <des@freebsd.org> writes:
> > We could remove this with no ill effects, but I'm not sure we want
> > to.
> Loop detection?

Not strictly necessary; we will eventually run into ARG_MAX, and the
only thing that grows while we loop is argv.

> Privilege escalation prevention?

Completely orthogonal.

> I might be entirely wrong, but the potential hazards seem to outweigh
> any possibly benefit.

Did you miss the second half of my sentence?

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