An error in any command stops execution of the user-defined command. If used interactively, commands that would ask for confirmation proceed without asking when used inside a user-defined command. Many commands that normally print messages to say what they are doing omit the messages when used in a user-defined command. You may define hooks , which are a special kind of user-defined command. If you try to define a hook which does not match any known command, you get a warning from the define command.
Command files A command file for is a file of lines that are commands.
When you start , it automatically executes commands from its init files . The lines in a command file are executed sequentially. They are not printed as they are executed. An error in any command terminates execution of the command file. Commands that would ask for confirmation if used interactively proceed without asking when used in a command file.