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