On Dienstag, 13. März 2007, Ned Ludd wrote:
> On Mon, 2007-03-12 at 19:15 -0400, Mike Frysinger wrote:
> > On Monday 12 March 2007, Mike Frysinger wrote:
> > > instead, since we require bash for our ebuilds, use the builtin `type
> > > -p`
> >
> > err i botched that ;)
> >
> > `type -p` is almost a complete drop in replacement for which ... it does
> > not work on bash builtins however, so people should use `type -P` to
> > force the PATH search
> >
> > in other words, `type -p echo` would return "" while `type -P echo` would
> > return "/bin/echo"
> > -mike
>
> Quick search shows the following ebuilds are abusing this behavior.
>

The scripts installed by these ebuilds also use which:
sys-kernel/module-rebuild:
media-tv/vdrplugin-rebuild: (fixed)

R_PORTAGEQ="`which portageq 2>/dev/null`"

Matthias

-- 
Matthias Schwarzott (zzam)
--
gentoo-dev@gentoo.org mailing list

Reply via email to