Home > OS >  Shell scripts first line! The provisions of the #
Shell scripts first line! The provisions of the #

Time:04-23

Should be the following one of the format
"#! % s \ n "interpreter
"#! % s \ n "interpreter
"#! % s % s \ n "interpreter arg
"#! % s % s \ n "interpreter arg
(with % s: string & lt; Delta> : variable)

Example:
#! The/usr/bin/env bash
Will seek first came into effect in the variable $PATH bash

1. The parameters of the interpreter should be a full path to the executable file, and cannot be an executable script
2. The parameters of interpreter and arg, if present, shall not include any reference letter
3, parameters of interpreter and arg, if present, shall not include any blank characters
4. Length less than 80 bytes

  • Related