#!/bin/sh . ./defs set -e cat >input < stdout cat >expected < tmp_ && mv tmp_ stdout diff stdout expected mv stdout input ./readsave input > stdout # Sort out some possible inversions in the output. # (The order is not guaranteed by SPOT.) sed 's/"d" "c"/"c" "d"/g' stdout > tmp_ && mv tmp_ stdout diff input stdout rm input stdout expected