Shell does not check for security holes, and will blithely execute commands like
cp /dev/null /etc/passwdwhich, if executed by the super-user, can be disastrous.
The shell parser is line-based, where lines are then split into tokens; it is not a true token-based parser. In general, it is best if all sh keywords that can appear alone on a line do so, and that compound commands (i.e., using a semi-colon) be avoided. For more details on the syntax, see the source (sorry...).
Table of Contents