bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

info finds wrong manpage


From: Werner LEMBERG
Subject: info finds wrong manpage
Date: Mon, 15 May 2023 11:35:17 +0000 (UTC)

[info compiled from git on 2022-11-29]


I have a manpage `fc-list.1` twice on my system:

  /usr/share/man/man1/fc-list.1.gz         (old)
  /usr/local/share/man/man1/fc-list.1      (new)

>From `set | less`:

  MANPATH=/usr/local/man:/usr/local/share/man:/usr/share/man
  INFOPATH=/usr/local/share/info:

Note that there is no trailing or leading `:` in my `MANPATH`
environment variable.

If I say `man fc-list`, I get the new manpage version.  However, if I
say `info fc-list`, I get the old manpage version, i.e., the manpage
from `/usr/share/man` gets displayed.  This smells fishy.

Is it possible that `info` doesn't pass the `MANPATH` environment
variable to the `man` subprocess?  In my `/etc/manpath.config` file,
the order of directories is indeed different:

```
MANDATORY_MANPATH                       /usr/man
MANDATORY_MANPATH                       /usr/share/man
MANDATORY_MANPATH                       /usr/local/share/man
```

However, according to the 'manpath(1)' man page, the value in
`/etc/manpath.config` should beignored if `MANPATH` is set...


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]