Gentoo Archives: gentoo-dev

From: Andrew Ross <aross@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] dont use `which` in ebuilds
Date: Tue, 13 Mar 2007 06:30:12
Message-Id: 45F6443F.3060003@gentoo.org
In Reply to: Re: [gentoo-dev] dont use `which` in ebuilds by Ned Ludd
1 Ned Ludd wrote:
2 > On Mon, 2007-03-12 at 19:15 -0400, Mike Frysinger wrote:
3 >> On Monday 12 March 2007, Mike Frysinger wrote:
4 >>> instead, since we require bash for our ebuilds, use the builtin `type -p`
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 > Quick search shows the following ebuilds are abusing this behavior.
11
12
13 > app-emulation/xen-tools/xen-tools-3.0.2-r3.ebuild:57:
14 > app-emulation/xen-tools/xen-tools-3.0.2-r4.ebuild:52:
15
16 Fixed.
17
18 Cheers
19
20 Andrew

Attachments

File name MIME type
signature.asc application/pgp-signature