Last change
on this file since 3864 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
File size:
775 bytes
|
Rev | Line | |
---|
[3320] | 1 | # busybox expr
|
---|
| 2 | busybox expr 1 \| 1
|
---|
| 3 | busybox expr 1 \| 0
|
---|
| 4 | busybox expr 0 \| 1
|
---|
| 5 | busybox expr 1 \& 1
|
---|
| 6 | busybox expr 0 \< 1
|
---|
| 7 | busybox expr 1 \> 0
|
---|
| 8 | busybox expr 0 \<= 1
|
---|
| 9 | busybox expr 1 \<= 1
|
---|
| 10 | busybox expr 1 \>= 0
|
---|
| 11 | busybox expr 1 \>= 1
|
---|
| 12 | busybox expr 1 + 2
|
---|
| 13 | busybox expr 2 - 1
|
---|
| 14 | busybox expr 2 \* 3
|
---|
| 15 | busybox expr 12 / 2
|
---|
| 16 | busybox expr 12 % 5
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | set +e
|
---|
| 20 | busybox expr 0 \| 0
|
---|
| 21 | if [ $? != 1 ] ; then
|
---|
| 22 | exit 1;
|
---|
| 23 | fi;
|
---|
| 24 |
|
---|
| 25 | busybox expr 1 \& 0
|
---|
| 26 | if [ $? != 1 ] ; then
|
---|
| 27 | exit 1;
|
---|
| 28 | fi;
|
---|
| 29 |
|
---|
| 30 | busybox expr 0 \& 1
|
---|
| 31 | if [ $? != 1 ] ; then
|
---|
| 32 | exit 1;
|
---|
| 33 | fi;
|
---|
| 34 |
|
---|
| 35 | busybox expr 0 \& 0
|
---|
| 36 | if [ $? != 1 ] ; then
|
---|
| 37 | exit 1;
|
---|
| 38 | fi;
|
---|
| 39 |
|
---|
| 40 | busybox expr 1 \< 0
|
---|
| 41 | if [ $? != 1 ] ; then
|
---|
| 42 | exit 1;
|
---|
| 43 | fi;
|
---|
| 44 |
|
---|
| 45 | busybox expr 0 \> 1
|
---|
| 46 | if [ $? != 1 ] ; then
|
---|
| 47 | exit 1;
|
---|
| 48 | fi;
|
---|
| 49 |
|
---|
| 50 | busybox expr 1 \<= 0
|
---|
| 51 | if [ $? != 1 ] ; then
|
---|
| 52 | exit 1;
|
---|
| 53 | fi;
|
---|
| 54 |
|
---|
| 55 | busybox expr 0 \>= 1
|
---|
| 56 | if [ $? != 1 ] ; then
|
---|
| 57 | exit 1;
|
---|
| 58 | fi;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.