Subject: bug: env exec bomb (no hash bang arg)

From: Michael Coleman <[email-masked]>
Date: Tue, 22 Oct 2019 02:13:13 +0000

One of my users unwittingly stumbled upon the most delightful 'env' bug.  It seems to be present in a couple of pretty recent distributions.

Try this:

----------------------------
#!/usr/bin/env
whatever
----------------------------

This results in an endless 'execve' recursion (if that's the word), pegging the CPU.

The preferred behavior would be something like a diagnostic, followed by immediate exit with an error result.

Regards,
Mike