I have executed many commands from this, installed mandoc, those(I guess) or any thing else(which I don't know) have changed my man pages output decoration.
In previous my man pages show SYNOPSIS in bold and all function's name. And outputs text are spread over the terminal window. Now, these features are lost.
Previous output of man malloc -
Current output of man malloc -
Provided that, if I ran PAGER=less man <man_page_name> then the function's name are shown in bold but not spread over terminal window.
Current output of PAGER=less man malloc -
I am using Ubuntu 14.04 and provided some commands outputs mentioned here
$ env is here. I provided this in external link as the output is so large.
$ update-alternatives --display pager
pager - auto mode
link currently points to /bin/less
/bin/less - priority 77
slave pager.1.gz: /usr/share/man/man1/less.1.gz
/bin/more - priority 50
slave pager.1.gz: /usr/share/man/man1/more.1.gz
/usr/bin/pg - priority 10
slave pager.1.gz: /usr/share/man/man1/pg.1.gz
Current 'best' version is '/bin/less'.
$ man -D malloc
man: invalid option -- 'D'
usage: man [-acfhklw] [-C file] [-M path] [-m path] [-S subsection]
[[-s] section] name ...
Now, what can I do so that man command works as previous?



-Dis a perfectly valid option formanon Ubuntu 14.04, so did you install another version ofman? What doestype -a manoutput? – muru Sep 20 '17 at 12:19$TERM? – waltinator Sep 20 '17 at 13:53envprovided in my question.xterm– alhelal Sep 20 '17 at 14:20envdump (would have been nicer asenv | sort) that yourPATHis unreasonably long, fix that.PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/sbin:...1825 chars, 172 dirs, 11 unique. – waltinator Sep 21 '17 at 08:36bash --norc– waltinator Sep 21 '17 at 08:40bash --norccommand, then try yourmancommand in that shell. When you're finished, typeexitor^Dto exit that shell, and return to your original. – waltinator Sep 22 '17 at 14:10