Is it just me, or did someone actually implement set-uid scripts?
Yes, they were a thing for a while, until someone realised that you could do:
ln -s /bin/scriptname ./-i
"-i" # assuming that "." is already in your path
...and get a root shell. Source: I did this on (ISTR) 4.1 or 4.2BSD.
-a
--