Last change
on this file since 3195 was 821, checked in by Bruno Cornec, 18 years ago |
Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)
|
File size:
776 bytes
|
Line | |
---|
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;
|
---|
59 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.