<No Subject Supplied>
Posted in 1996
David Williams — — source: Informix-list mailing list archive (1991-1998)
}This may vary from system to system, but I don't think your descripton }is quite right. The shell from which you called the script forks a new }process, but only one. The kernel then looks at the first line of the }script to determine what shell to use, and exec's that shell. If the }first line begins with anything other than #, the Bourne shell is }typically used by default. If the first line begins with #, the C }shell is typically used. }If the first line begins with #!, the kernel }reads the rest of the line for the pathname of the shell to use, }along with any command-line arguments for that shell. This does not happen with all shells - I have seen some C-Shells which do not do #! processing!