Your message dated Fri, 9 Aug 2019 16:13:15 +0200 with message-id <4b3d1872-c3a7-81f2-a8c1-ae1813a985d9@web.de> and subject line Re: Bug#245673: info: return the first non-exact match instead of the last has caused the Debian Bug report #245673, regarding info: return the first non-exact match instead of the last to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 245673: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=245673 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: info: return the first non-exact match instead of the last
- From: Andrew Pimlott <andrew@pimlott.net>
- Date: Sat, 24 Apr 2004 09:00:21 -0700
- Message-id: <20040424160021.GA27885@nexplancorp.com>
Package: info Version: 4.6-1 Severity: wishlist Tags: patch This bug is spawned from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=213618 . When looking for an info page to display when I type "info foo", the stand-alone info reader looks for an exact match (returning the first hit), then a case-insensitive match (returning the first hit), then a case-insensitive prefix match (returning the last hit). (This is in info_follow_menus.) The part about returning the last hit in the prefix match is somewhat odd. It is not really wrong, but it would be more consistent and slightly more intuitive to return the first hit. The appended patch makes this change. I sent this patch to bfox@gnu.org, but received no reply. Andrew --- session.c.orig 2003-10-01 19:52:22.000000000 -0400 +++ session.c 2003-10-01 19:52:24.000000000 -0400 @@ -2547,7 +2547,7 @@ if (strcasecmp (entry->label, arg) == 0) break; else - if (strncasecmp (entry->label, arg, strlen (arg)) == 0) + if (! best_guess && strncasecmp (entry->label, arg, strlen (arg)) == 0) best_guess = i; } -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing'), (100, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.4-s03nexplan Locale: LANG=C, LC_CTYPE=C Versions of packages info depends on: ii libc6 2.3.2.ds1-11 GNU C Library: Shared libraries an ii libncurses5 5.4-3 Shared libraries for terminal hand -- no debconf information
--- End Message ---
--- Begin Message ---
- To: 245673-done@bugs.debian.org
- Subject: Re: Bug#245673: info: return the first non-exact match instead of the last
- From: Hilmar Preuße <hille42@web.de>
- Date: Fri, 9 Aug 2019 16:13:15 +0200
- Message-id: <4b3d1872-c3a7-81f2-a8c1-ae1813a985d9@web.de>
- In-reply-to: <20040424160021.GA27885@nexplancorp.com>
- References: <20040424160021.GA27885@nexplancorp.com>
Version: 6.5.0.dfsg.1-4+b1 Am 24.04.2004 um 18:00 teilte Andrew Pimlott mit: > This bug is spawned from > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=213618 . > > When looking for an info page to display when I type "info foo", the > stand-alone info reader looks for an exact match (returning the first > hit), then a case-insensitive match (returning the first hit), then a > case-insensitive prefix match (returning the last hit). (This is in > info_follow_menus.) > No reaction from submitter for 1/2 a year and issue probably solved. Closing. Hilmar -- sigfault #206401 http://counter.li.orgAttachment: signature.asc
Description: OpenPGP digital signature
--- End Message ---