|
|
Of these list operators, && and \(bv\(bv have equal precedence, followed by ; and .BR &, which have equal precedence.
If a command is terminated by the control operator .BR & , the shell executes the command in the background\fP in a subshell. The shell does not wait for the command to finish, and the return status is 0. Commands separated by a ; 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.
The control operators && and \(bv\(bv denote AND lists and OR lists, respectively. An AND list has the form
An OR list has the form
command2 is executed if and only if command1 returns a non-zero exit status. The return status of AND and OR lists is the exit status of the last command executed in the list.
Web: http://shell.tjgy.com Email:support@tjgy.com