chiark / gitweb /
1993d1a82815ee942dd68431d3d2c4a9d9924f51
[termux-packages] / packages / coreutils / tests / tails-c-flag.sh
1 set -e -u
2
3 RESULT=$(echo -n 123456 | tail -c 3)
4 if [ "$RESULT" != 456 ]; then
5         echo "Test failed - expectd 456, got $RESULT"
6         exit 1
7 fi