aboutsummaryrefslogtreecommitdiff
path: root/testsuite/sed/sed-append-next-line
blob: 0621a319f701c2b304c005bd36363bc27be344d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This will fail if CONFIG_FEATURE_SED_GNU_COMPATABILITY is defined
busybox sed 'N;p'>output <<EOF
a
b
c
EOF

set +e
cmp -s output - <<EOF
a
b
a
b
c
EOF
if [ $? != 0 ] ; then
	exit 0;
fi
exit 1;