What is the AND / && Boolean operator in the Bash Shell?

Bash Liste Des Attaques Ovh

What is the AND / && Boolean operator in the Bash Shell?

About

The AND or && is:

where:

  • the next command is executed if, and only if,
  • the previous command is successfull (ie returns an exit status of zero (true))

Example

An AND list has the form

command1 && command2

Return status

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

Left associativity

AND list are executed with left associativity.





Discover More
Bash Liste Des Attaques Ovh
Bash - Set (of Bash Options)

The set builtin command can be specify shell option. When options are specified, they set or unset shell attributes. Without options, the name and value of each shell variable are displayed in a...



Share this page:
Follow us:
Task Runner