Creative nit-pick mood. :-) > +[ -d .hg ] || { cat VERSION; exit 0; } > +hg >/dev/null 2>&1 || { cat VERSION; exit 0; } { [ -d .hg ] && hg >/dev/null 2>&1 } || { cat VERSION; exit 0; } BTW, I think it's cool, if and when it works. Moritz