]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/prec.right
Bash-4.3 patch 46
[thirdparty/bash.git] / tests / prec.right
1 `Say' echos its argument. Its return value is of no interest.
2 `Truth' echos its argument and returns a TRUE result.
3 `False' echos its argument and returns a FALSE result.
4
5 Truth 1 && Truth 2 || Say 3 output=12
6 ( Truth 1 && Truth 2 ) || Say 3 output=12
7
8 Truth 1 && False 2 || Say 3 output=123
9 ( Truth 1 && False 2 ) || Say 3 output=123
10
11 False 1 && Truth 2 || Say 3 output=13
12 ( False 1 && Truth 2 ) || Say 3 output=13
13
14 False 1 && False 2 || Say 3 output=13
15 ( False 1 && False 2 ) || Say 3 output=13
16
17 Truth 1 || Truth 2 && Say 3 output=13
18 Truth 1 || ( Truth 2 && Say 3 ) output=1
19
20 Truth 1 || False 2 && Say 3 output=13
21 Truth 1 || ( False 2 && Say 3 ) output=1
22
23 False 1 || Truth 2 && Say 3 output=123
24 False 1 || ( Truth 2 && Say 3 ) output=123
25
26 False 1 || False 2 && Say 3 output=12
27 False 1 || ( False 2 && Say 3 ) output=12
28