Operating System - HP-UX
1837098 Members
2422 Online
110112 Solutions
New Discussion

Re: What does %L do for /etc/MANPATH entries

 
SOLVED
Go to solution
Jack C. Mahaffey
Super Advisor

What does %L do for /etc/MANPATH entries

I'm looking at writing a script to update /etc/MANPATH to include all directories that have man pages. Looking at the current contents of /etc/MANPATH I see the key combination %L used frequently. e.g. "/usr/share/man/%L". There's also another entry "/usr/share/man". executing ll on /usr/share/man/%L returns nothing. What is the significance of %L?

Thanks...
2 REPLIES 2
Pete Randall
Outstanding Contributor
Solution

Re: What does %L do for /etc/MANPATH entries

Jack,

Here's a hint, at least - from "man man":

"The %L, %l, %t, and %c specifiers can be used as path
components to cause locale-specific directories to be searched. See
environ(5) for a complete description of MANPATH."

And, from "man 5 environ":

"Field descriptors consist of a % followed by a single
character. Field descriptors and their substitution
values are:

%N The value of the name parameter passed to
catopen(3C).
%L The value of LC_MESSAGES.
%l The language element from LC_MESSAGES.
%t The territory element from LC_MESSAGES.
%c The codeset element from LC_MESSAGES.
%% Replaced by a single %.


Pete


Pete
Jack C. Mahaffey
Super Advisor

Re: What does %L do for /etc/MANPATH entries

Pete, thanks for the pointers...