Table of Contents

About

This article talks about the semi-colon and new line as control operator in bash.

Example

command1 ; command2
# or
command1
command2

What effect do they have?

  • Commands separated by a ; or a newline are executed sequentially;
  • the shell waits for each command to terminate in turn.
  • The return status is the exit status of the last command executed.