Han Boetes <[EMAIL PROTECTED]> writes:
> And makewhatis -w creates:
> 
> [/var/cache/man]# ls -la /var/cache/man/en_US/whatis
> -rw-r--r--    1 root     root      1941377 Dec 20 08:08 /var/cache/man/en_US/whatis
> 
> But man -k returns nothing. If I copy /var/cache/man/en_US/whatis to
> /var/cache/man/whatis man -k works fine.
> 
> 
> [~/nfs]% strace man -k term 2> strace.out
> term: nothing appropriate

this is fine since there's no /var/cache/man/whatis.

what is not fine is that man don't try /var/cache/man/<LOCALE>/whatis


btw,  if you've man-pages-1*, its cron entry creates
/var/cache/man/whatis around 4h in the morning, which workaround man
-k misbehavirour


> Shouldn't this go to stderr? and the straceoutput to stdout?

error message destination depend of each soft policy.
as for man, there're pro and cons for stdout as for stderr about this
message.

as for strace output, it has always be on stderr, and altering this
behaviour would confuse lots of people and scripts.


Reply via email to