Junio C Hamano <gits...@pobox.com> 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"
                command sed "$@"

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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to