Messages in this thread | | | Date | Tue, 19 Dec 2006 17:05:54 -0500 | From | "Mike Frysinger" <> | Subject | Re: [patch] search a little harder for mkimage |
| |
On 12/19/06, Andrew Morton <akpm@osdl.org> wrote: > > -MKIMAGE=$(type -path mkimage) > > +MKIMAGE=$(type -path ${CROSS_COMPILE}mkimage) > > Do all bash versions support `type -path'?
i've just always used `type -p` myself ...
but, bash-2.05 supports it for sure and that was released back in 2001 ...
> Perhaps /usr/bin/which would be safer, dunno.
which can be tricky as it behaves a little differently on some platforms and may not always even be installed ... OS X for example is notorious for being a piece of crap ... `which asdfasdf` will echo the error to stdout and exit with a status of 0 even though the test obviously failed -mike - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |