This comes down to the lack of a 'seq' command (what?!) and the fact that BSD "wc -l" returns extra whitespace, while the GNU version doesn't. We should be using numeric comparisons instead of string comparisons, and then it's ok.
9 lines
147 B
Text
9 lines
147 B
Text
rm -f t2.count
|
|
redo t2
|
|
redo t2
|
|
OUT=$(cat t2.count | wc -l)
|
|
. ../skip-if-minimal-do.sh
|
|
if [ "$OUT" -ne 2 ]; then
|
|
echo "t2: expected 2"
|
|
exit 43
|
|
fi
|