#! loader convention

Guy Harris guy at auspex.auspex.com
Thu Apr 18 05:05:20 AEST 1991


>I believe that the convention of interpreting #! comments in
>"scripts" is built in the loader for BSD.

What do you mean by "the loader"?  It's not in the linker "ld", but it
is in the code in the kernel that handles "exec[vl]" and "exec[vl]e".

>Does anyone know if any such mechanism exists at the same level in System
>V ?

Which release of System V?  The only release from AT&T's UNIX Software
Laboratory, or its predecessor organizations, that has it is System V
Release 4; S5R4 has a full-blown "#!" implementation in the
"exec[vl]"/"exec[vl]e" code (although with, I think, some of the
line-length limitations that BSD has).  *Some* vendors have added "#!"
to OS releases of theirs based on S5 releases from AT&T prior to S5R4;
others haven't. 



More information about the Comp.unix.questions mailing list