What does the OR Boolean operator in a list of bash command? ie ||

Bash Liste Des Attaques Ovh


The OR list operator is :


In the following example:

command1 || command2

the command2 is executed if, and only if, command1 returns a non-zero exit status (false).

Left associativity

OR lists are executed with left associativity.

Exit status

The return status is the exit status of the last command executed in the list.

Discover More
Bash Liste Des Attaques Ovh
Bash - Boolean Operator

This page is Boolean operator in bash. operators Symbol Logic && || ! not Details: True if expression is false. True if both expression1 and expression2 are true. True if either...
Bash Liste Des Attaques Ovh
Bash - Lists of Commands

A list of command is a sequence of one or more pipelines separated by one of the operators: ‘;’, ‘&’, ‘&&’, or ‘||’, and optionally terminated by one of ‘;’, ‘&’, or a newline....
Bash Liste Des Attaques Ovh
What are Control Operators in Bash?

A control operator is a separator in a list of command that controls the execution of the commands. They implement: Boolean operator Block syntax End of statement Pipe operators A token that...

Share this page:
Follow us:
Task Runner