The following patch to dahdi-tools adds the 'compare' subcommand to dahdi_span_assignments, similar to that was earlier added to dahdi_span_types. That is: it will give an output and a non-zero exit value if 'dahdi_span_assignment add' will cause any spans to be assigned.