Bug#501194: info opens browser even when argument is not found
Package: info
Version: 4.11.dfsg.1-4
Severity: minor
If I am looking for information on 'foo', the program 'man' tells me
right away that it isn't in the manpage database:
$ man foo
No manual entry for foo
However, 'info' forces the user to read through the following output:
----------------------------------------------------------------
File: dir Node: Top This is the top of the INFO tree
This (the Directory node) gives a menu of major topics.
Typing "q" exits, "?" lists all Info commands, "d" returns here,
"mCoreutils<Return>" visits Coreutils topic, etc.
Or click mouse button 2 on a menu item or cross reference to select
it.
--- PLEASE ADD DOCUMENTATION TO THIS TREE. (See INFO topic first.) ---
In Debian GNU/Linux, Info `dir' entries are added with the command
`install-info'. Please refer to install-info(8) for usage details.
* Menu: The list of major topics begins on the next line.
Basics
* Coreutils: (coreutils). Core GNU (file, text, shell)
utilities.
* Common options: (coreutils)Common options.
Common options.
* File permissions: (coreutils)File permissions.
Access modes.
* Date input formats: (coreutils)Date input formats.
* Finding files: (find). Operating on files matching certain
criteria.
Miscellaneous:
* Rluserman: (rluserman). GNU Readline Library API
Utilities
* Gzip: (gzip). The gzip command for compressing
-----Info: (dir)Top, 459 lines --Top-------------------------------------------------
No menu item `foo' in node `(dir)Top'.
----------------------------------------------------------------
I think it would be more user-friendly to just print a brief message
like 'man' does, rather than opening a screen full of stuff which has
already been determined not to contain the desired term.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages info depends on:
ii libc6 2.7-12 GNU C Library: Shared libraries
ii libncurses5 5.6+20080621-2 shared libraries for terminal hand
info recommends no packages.
-- no debconf information
Reply to: