3 ms·
The problem with this approach is that you then have to maintain that variable. On OSX, my /etc/man.conf includes this for MANSECT: 1:1p:8:2:3:3p:4:5:6:7:9:0p:
by toyg 8y ago
The problem with this approach is that you then have to maintain that variable. On OSX, my /etc/man.conf includes this for MANSECT:
1:1p:8:2:3:3p:4:5:6:7:9:0p:tcl:n:l:p:o
I guess one should really have a script that first greps out that default value, and then appends your custom section before exporting the variable.
EDIT: something like:
export MANSECT=$(pcregrep -o1 MANSECT\\s\{2,\}\(.*\) /etc/man.conf):pj