Glenn L McGrath | 2570b43 | 2003-09-16 05:25:43 +0000 | [diff] [blame] | 1 | # This will fail if CONFIG_FEATURE_SED_GNU_COMPATABILITY is defined |
2 | busybox sed 'N;p'>output <<EOF | ||||
Glenn L McGrath | 65f9dc0 | 2003-09-15 05:35:47 +0000 | [diff] [blame] | 3 | a |
4 | b | ||||
5 | c | ||||
6 | EOF | ||||
Eric Andersen | 650fe63 | 2004-04-06 11:10:30 +0000 | [diff] [blame] | 7 | |
8 | set +e | ||||
Glenn L McGrath | 65f9dc0 | 2003-09-15 05:35:47 +0000 | [diff] [blame] | 9 | cmp -s output - <<EOF |
10 | a | ||||
11 | b | ||||
Glenn L McGrath | 2570b43 | 2003-09-16 05:25:43 +0000 | [diff] [blame] | 12 | a |
13 | b | ||||
14 | c | ||||
Glenn L McGrath | 65f9dc0 | 2003-09-15 05:35:47 +0000 | [diff] [blame] | 15 | EOF |
Eric Andersen | 650fe63 | 2004-04-06 11:10:30 +0000 | [diff] [blame] | 16 | if [ $? != 0 ] ; then |
17 | exit 0; | ||||
18 | fi | ||||
19 | exit 1; |