#!/bin/sh set -ev rm -rf $0.dir mkdir $0.dir cd $0.dir echo foo > foo echo bar > bar cat > top.fac < foobar > foobar | echo foo > foobar > foobar EOF git init git add top.fac if ${FAC:-../../fac} > fac.out 2>&1; then cat fac.out echo This should not have passed exit 1 fi cat fac.out grep -i 'duplicate rule' fac.out exit 0