SHELL=/bin/bash n=100 go: # once in a rare while, this first test will legitimately fail... ./this-pylint randomize ! diff <(seq $n | ./randomize) <(seq $n) > /dev/null diff <(seq $n | ./randomize | sort -n) <(seq $n) cmp <(seq $n | tr '\n' '\0' | ./randomize -0 | tr '\0' '\n' | sort -n) <(seq $n) ! diff <(seq $n | /usr/local/cpython-3.2/bin/python ./randomize) <(seq $n) > /dev/null diff <(seq $n | /usr/local/cpython-3.2/bin/python ./randomize | sort -n) <(seq $n) cmp <(seq $n | tr '\n' '\0' | /usr/local/cpython-3.2/bin/python ./randomize -0 | tr '\0' '\n' | sort -n) <(seq $n) install: cp randomize /usr/local/bin/. cp python2x3.py readline0.py /usr/local/lib/. clean: rm -f *.pyc rm -rf __pycache__