From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21066 invoked by alias); 2 Apr 2003 03:25:08 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21052 invoked from network); 2 Apr 2003 03:25:08 -0000 Received: from unknown (HELO gandalf.inter.net.il) (192.114.186.22) by sources.redhat.com with SMTP; 2 Apr 2003 03:25:08 -0000 Received: from zaretsky (adsl-ayalon-pc-128-36.inter.net.il [213.8.128.36]) by gandalf.inter.net.il (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id AKP81385; Wed, 2 Apr 2003 06:25:02 +0300 (IDT) Date: Wed, 02 Apr 2003 03:25:00 -0000 From: "Eli Zaretskii" To: bje@wasabisystems.com Message-Id: <8011-Wed02Apr2003061800+0300-eliz@elta.co.il> CC: gdb@sources.redhat.com In-reply-to: (message from Ben Elliston on 02 Apr 2003 09:48:40 +1000) Subject: Re: makeinfo with gdb.texinfo Reply-to: Eli Zaretskii References: <20030331172211.GB10233@white> <20030331174222.GA30182@nevyn.them.org> <20030331175248.GC10233@white> <16008.34076.442297.792987@casey.transmeta.com> X-SW-Source: 2003-04/txt/msg00018.txt.bz2 > From: Ben Elliston > 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.