#!/bin/sh set -ev rm -rf $0.dir mkdir $0.dir cd $0.dir cat > top.fac < foo > foo | cat foo > bar > bar < foo | cat bar > baz > baz < bar EOF git init git add top.fac ${FAC:-../../fac} -v grep foo foo grep foo bar grep foo baz rm foo bar baz ${FAC:-../../fac} -v grep foo foo grep foo bar grep foo baz rm foo bar ${FAC:-../../fac} -v grep foo foo grep foo bar grep foo baz exit 0