Re: Portable equivalent of "type -p"?
In an attempt to save the world from disaster, jdassen@wi.leidenuniv.nl wrote:
> I've been removing bashisms from my rules files lately (SHELL=/bin/ash and
> try to build), and have encountered one situation in which I don't know a
> portable solution.
>
> Several of my rules files have a sanity check for the C library in them;
> when this check fails, it provides some debugging info, including the
> location of $(CC). Currently, I use `type -p $(CC)` for this, but this does
> not work with ash.
>
> Is there a portable (POSIX) way of determining which binary will be called
> for a particular command?
What's wrong with "which", from the (priority: requred) debianutils
package?
--
joost witteveen, joostje@debian.org
The upstream maintainer is allowed to do things different
than Debian, but only if he has good reasons to do so.
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: