On Tue, Apr 17, 2012 at 07:06, Vinay Sajip <vinay_sajip@yahoo.co.uk> wrote:
the shell opens the file and looks for a shebang line, finds it, interprets it,

The shell does not; the kernel does.  (You *will* see it documented in some shells... as something they will try if the kernel-based one fails.  Are you still running 2.9BSD?)

--
brandon s allbery                                      allbery.b@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms