"foo && bar || baz" in bash behaving differently from "if foo; then bar; else baz"
34304
Precedence of the shell logical operators &&, ||
10475
Operator precedence for  And/&& in Ruby
134273
Bash: Why does this Brace Expression work this way?
35549
What is the difference between the | and || or operators?
73300
How do `>` and `>>` work?
56072
How do I compare two string variables in an 'if' statement in Bash?
115798
Multiple and ors in if statement bash
52424
Using regex inside if clause in bash
19211
PHP if not equal(!=) and or (||) issue. Why doesnt this work?
14252
How to represent multiple conditions in a shell if statement?
3006
Parenthesis works in bash shell itself, but not in bash script
96938
What's the difference between using > and >> in shell?
38958
How do "and" and "or" act with non-boolean values?
77615
Why does the less-than sign not work as a replacement for cat in bash?
79499
What does the '|' (vertical bar) character mean in a Terminal command?
109504
The difference between && and ||
147454
Why does bash set $? (exit status) to non-zero on Ctrl-C or Ctrl-Z?