Re: Makefile cleanups

From: Nick Holloway (Nick.Holloway@alfie.demon.co.uk)
Date: Fri Apr 07 2000 - 01:54:01 EST


krooger@debian.org (Jonathan Walther) writes:
> + else if [ -z `which bash` ] ; then echo sh; \
> + else echo `which bash`; fi ; fi)

It is safer to use "type -path" rather than "which".

The former is a Bourne shell (and derivatve) builtin. The latter
traditionally used "csh" to evaluate (and uses "bash" on this Debian box).

-- 
 `O O'  | Nick.Holloway@alfie.demon.co.uk
// ^ \\ | http://www.alfie.demon.co.uk/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:18 EST