source: vendor/bash/3.1/tests/prec.right

Last change on this file was 3228, checked in by bird, 19 years ago

bash 3.1

File size: 886 bytes
Line 
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
17Truth 1 || Truth 2 && Say 3 output=13
18Truth 1 || ( Truth 2 && Say 3 ) output=1
19
20Truth 1 || False 2 && Say 3 output=13
21Truth 1 || ( False 2 && Say 3 ) output=1
22
23False 1 || Truth 2 && Say 3 output=123
24False 1 || ( Truth 2 && Say 3 ) output=123
25
26False 1 || False 2 && Say 3 output=12
27False 1 || ( False 2 && Say 3 ) output=12
28
Note: See TracBrowser for help on using the repository browser.