Linux.com

bash scripts

Posted by: Anonymous [ip: 207.14.167.161] on July 12, 2008 06:37 PM
I think starting a script with #! establishes a magic number-see 'man magic'.
I learned this long ago when I asked an old-timer: when you tell your shell to execute a file,
how does it know if it's compiled or a script? I think this is the same mechanism
that is used by the 'file' command.

#

Return to Ask Linux.com: IT, Japanese, and crafting bigger and better bash scripts