The interpreter and the shebang, the x permission and PATH, variables in quotes, $1, $# and "$@", [ -f ] tests and an exit status with a usage line on stderr. The questions follow the lessons “A script is a file of commands” and “Arguments, quotes and file checks”.
9 questions · threshold 70%