fail if sort(1) is run with non-C locale.
Fix the test #42 - /usr/share/dict/words is sorted with -f (case insens),
so we need use the -f flag here too!
may fail some tests, yet conform to standard too; for non-stable sort,
quite a few tests have actually more possible 'correct' results, yuck!
check for presence of -S and use it to switch to non-stable sort - the tests
are not written for stable sort
Fix test 37 - for 'sort -m -r' to actually work, the input files have
to be reverse sorted as well. Now the in-tree BSD sort passes this test ;-)
print the used sort command and parameters for 'failed' messages
other small sleanups, remove accidentaly added debug stuff
put it comment that this was derived from stuff written by
Peter McIlroy - it's not clear now that it's separate from
the rest of new BSD-licenced sort(1)