Re: Bugs in imlib.spec



Tim> This sort of thing is no good, because which isn't guaranteed to
Tim> return an empty string if it fails.

`which' is evil in any case.

Tim> In fact, my /usr/bin/which (which is the which that gets called
Tim> in the script instead of the bash builtin) returns this:

The bash builtin is called `type'.


For GNU-ish programs you don't need to use `which' as an existence
test.  Instead just run them with `--version' and ignore the output.
This is what automake does when looking for `install-info'.

Tom



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]