You are not logged in.

#1 2023-08-30 20:51:43

jcarrete
Member
Registered: 2020-03-09
Posts: 12

[SOLVED] "man [section] [page]" not working

Running

man 5 passwd

produces

No manual entry for 5
(Alternatively, what manual page do you want from section 5?)
For example, try 'man man'

instead of opening the appropriate man page. This issue appears to happen whenever I try to access any man page using the

man [section] [page]

form of the man command.

Running

man passwd.5

I get the corresponding man page.

This seems like a bug. I'm not sure what I would have misconfigured that would cause this issue. Is anyone else seeing this?

Last edited by jcarrete (2023-08-30 21:06:53)

Offline

#2 2023-08-30 20:54:25

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,462
Website

Re: [SOLVED] "man [section] [page]" not working

What is the output from `type man`?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-08-30 21:06:18

jcarrete
Member
Registered: 2020-03-09
Posts: 12

Re: [SOLVED] "man [section] [page]" not working

bah thank you. I forgot I had changed this!

I made it a function to try and center man pages some time ago. I guess I haven't used this form of the man command in a while.

$ type man
man is a function
man ()
{
MANWIDTH=$(( $(tput cols) > $max_width ? $max_width : $(tput cols) )) LESSOPEN='|- ${XDG_CONFIG_HOME:-$HOME/.config}/less/preprocess-man %s' /usr/bin/man $1
}

Probably should just make it an alias.

Last edited by jcarrete (2023-08-30 21:07:59)

Offline

#4 2023-08-30 21:11:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,462
Website

Re: [SOLVED] "man [section] [page]" not working

Or just replace the $1 with $@


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB