From: Junio C Hamano Date: Tue, 15 Jan 2013 20:38:44 GMT Subject: Re: [PATCH] tests: turn on test-lint-shell-syntax by default Message-ID: <7vk3re2ncb.fsf@alter.siamese.dyndns.org> In-Reply-To: <50F5B83E.9060800@web.de> Torsten Bögershausen writes: > What do we think about something like this for fishing for which: > > --- a/t/test-lib.sh > +++ b/t/test-lib.sh > @@ -644,6 +644,10 @@ yes () { > : > done > } > +which () { > + echo >&2 "which is not portable (please use type)" > + exit 1 > +} > > > This will happen in runtime, which might be good enough ? if ( which frotz && test $(frobonitz --version" -le 2.0 ) then test_set_prereq FROTZ_FROBONITZ else echo >&2 "suitable Frotz/Frobonitz combo not available;" echo >&2 "some tests may be skipped" fi I somehow think this is a lost cause.