Junio C Hamano <[email protected]> writes:
> If we did not care about incurring runtime performance cost, we
> could arrange:
> ...
> Then you can wrap commands whose use we want to limit, perhaps like
> this, in the test framework:
> ...
> sed () {
> ...
> done
> if test -z "$must_abort"
> sed "$@"
> fi
> }
Of course, aside from missing "then", this needs to use the
real "sed", so this has to be
if test -z "$must_abort"
then
command sed "$@"
fi
or something like that.
An approach along this line may reduce both the false negatives and
false positives down to an acceptable level, but I doubt the result
would be efficient enough for us to tolerate the runtime penalty.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html