#!/bin/sh set -ev rm -rf $0.dir mkdir $0.dir cd $0.dir cat > my.fac < foo.fac EOF git init git add my.fac ${FAC:-../../fac} cat > my.fac < foo.fac > foo.fac EOF if ${FAC:-../../fac}; then echo should have crashed parsing foo.fac exit 1 fi exit 0