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

Re: umask has no man page?



On Mon, Nov 3, 2014 at 11:57 AM, The Wanderer <wanderer@fastmail.fm> wrote:
> [...]
> You might be able to find something out from 'man -d umask', and
> examining the resulting debugging output... it seems to indicate exactly
> what file it ends up using, and what path it takes in figuring out what
> file to use. Though the output is not exactly user-friendly, being
> intended for debug-time developer use.
>
> (The important thing is not the absence of a symbolic link, but the
> absence of anything at all by the name of umask.1 or umask.1.gz. If no
> such thing is present, then I have no clue how man is even finding a
> page to show you...)

Starting about line 120:
---------------------------------
--priv_drop_count = 0
searching in /usr/share/man/ja, section 1
trying section 1 with globbing
Layout is GNU (1)
update_directory_cache /usr/share/man/ja: miss
globbing pattern in /usr/share/man/ja: man1*
matched: /usr/share/man/ja/man1
update_directory_cache /usr/share/man/ja/man1: miss
globbing pattern in /usr/share/man/ja/man1: umask.1*
update_directory_cache /usr/share/man/ja: hit
globbing pattern in /usr/share/man/ja: cat1*
Succeeded in opening /var/cache/man/ja/index.db O_RDONLY
found 2 names/extensions
multi key lookup (umask    2)
multi key lookup (umask    1)

ult_src: File /usr/share/man/ja/man1/builtins.1.gz in mantree /usr/share/man/ja
----------------------------------

Then more searching, finding umask.2.gz in man/ja/man2 and man/man2
and doing some precedence calculation, then, around line 457,

----------------------------------
trying a db located file.
name:      umask
sec. ext:  1
section:   1
comp. ext: gz
id:        C
st_mtime   1339329350
pointer:   builtins
filter:    -
whatis:

builtins: relying on whatis refs is deprecated
Checking physical location: /usr/share/man/ja/man1/builtins.1.gz

ult_src: File /usr/share/man/ja/man1/builtins.1.gz in mantree /usr/share/man/ja
found ultimate source file /usr/share/man/ja/man1/builtins.1.gz
found lang dir element ja
----------------------------------

and it proceeds to convert and format.

Heh. Inquiring minds wanted to know.

:)

(Thanks. I'll have to remember the -d option.)

-- 
Joel Rees

Be careful when you look at conspiracy.
Look first in your own heart,
and ask yourself if you are not your own worst enemy.
Arm yourself with knowledge of yourself, as well.


Reply to: