From: | Mike Frysinger <vapier@g.o> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Subject: | Re: [gentoo-dev] dont use `which` in ebuilds | ||
Date: | Mon, 12 Mar 2007 23:18:36 | ||
Message-Id: | 200703121915.38528.vapier@gentoo.org | ||
In Reply to: | [gentoo-dev] dont use `which` in ebuilds by Mike Frysinger |
1 | On Monday 12 March 2007, Mike Frysinger wrote: |
2 | > instead, since we require bash for our ebuilds, use the builtin `type -p` |
3 | |
4 | err i botched that ;) |
5 | |
6 | `type -p` is almost a complete drop in replacement for which ... it does not |
7 | work on bash builtins however, so people should use `type -P` to force the |
8 | PATH search |
9 | |
10 | in other words, `type -p echo` would return "" while `type -P echo` would |
11 | return "/bin/echo" |
12 | -mike |
Subject | Author |
---|---|
Re: [gentoo-dev] dont use `which` in ebuilds | Ned Ludd <solar@g.o> |
Re: [gentoo-dev] dont use `which` in ebuilds | Ned Ludd <solar@g.o> |