>>>>> "Pan" == Pan Tsu <[email protected]> writes:

Pan> ...a shebang can be written with sudo in mind, e.g.

Pan>   #! /usr/bin/env -S sudo sh
Pan>   id

(Untested) why not just "#!/usr/local/bin/sudo" ?  It'll be given the
filename as an argument.

Aside: In general, almost every use of "#!/usr/bin/env XXX" as a
solution is wrong.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"

Reply via email to