Re: makeinfo with gdb.texinfo

Eli Zaretskii
2003-04-02T03:25:08Z

> From: Ben Elliston <bje@wasabisystems.com>
> Date: 02 Apr 2003 09:48:40 +1000
>
> > Yep. If it's like the "info" command
> > bash$ info -f gdb.info
> > gives you the installed version whereas
> > bash$ info -f ./gdb.info
> > gives you the version in the current directory.
>
> It's annoying behaviour and, IMHO, a bug.

Actually, it's a deliberately programmed feature. It's even described
in the manual: relative file names are interpreted as being relative
to one of the directories mentioned in the INFOPATH environment
variable (or in the default Info search path if INFOPATH is
undefined).

> Shouldn't info use copies in the local directory if they can be
> found, otherwise search the info path?

It mimics the behavior of a Unix shell when searching for executable
programs: the current directory is never searched, unless you have "."
in your PATH.