The example of test command: script -q -c 'echo -e -n "1\n2\n3\n"' /dev/null </dev/null > 123.txt The output file on full-blown ubuntu system contains 6 bytes. Output on Busybox system (arm-linux) contains extra '\r' byte in each line.
Can't reproduce: util-linux-2.28 also has '\r' bytes in 123.txt