In a script you must include a #!
on the first line followed by the path to the program that will execute the script (e.g.: sh, perl).
As far as I know, the #
character denotes the start of a comment and that line is supposed to be ignored by the program executing the script. It would seem, that this first line is at some point read by something in order for the script to be executed by the proper program.
Could somebody please shed more light on the workings of the #!
?
I'm really curious about this, so the more in-depth the answer the better.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…