3
0

sed-append-next-line 195 B

12345678910111213141516171819
  1. # This will fail if CONFIG_FEATURE_SED_GNU_COMPATABILITY is defined
  2. busybox sed 'N;p'>output <<EOF
  3. a
  4. b
  5. c
  6. EOF
  7. set +e
  8. cmp -s output - <<EOF
  9. a
  10. b
  11. a
  12. b
  13. c
  14. EOF
  15. if [ $? != 0 ] ; then
  16. exit 0;
  17. fi
  18. exit 1;