sön 12 nov. 2023 kl. 19:02 skrev Nathan Hartman <hartman.nat...@gmail.com>:
> In my adventures with tools/dev/unix-build/Makefile.svn, I saw two places > that call '-which', that is, 'which' preceded by a dash. > > One of these is in the recipe for gettext's configure. It was changed from > 'which' to '-which' in r1577186. > > I'm not familiar with this. What does '-which' do, and how is it different > from 'which'? > Maybe it is just a make-ism to ignore errors? See the gnu make manual at [1]: “To ignore errors in a recipe line, write a ‘-’ at the beginning of the line’s text (after the initial tab). The ‘-’ is discarded before the line is passed to the shell for execution.” Kind regards Daniel [1] https://www.gnu.org/software/make/manual/html_node/Errors.html