> ropers wrote on Fri, Mar 06, 2009 at 11:48:17AM +0100: > >> I've just noticed that the web-based openbsd.org man pages are >> case-sensitive. Observe: >> >> http://www.openbsd.org/cgi-bin/man.cgi?query=Umsm >> http://www.openbsd.org/cgi-bin/man.cgi?query=umsm >> >> Is this intended behaviour or a bug?
2009/3/10 Ingo Schwarze <[email protected]>: > > That's intended. > Regarding command line utilities, the searches > apropos(1), man -k, whatis(1), man -f > are case insensitive, only plain man(1) lookup is case > sensitive, such that the following works conveniently: > > $ man -k fcntl > Fcntl (3p) - load the C Fcntl.h defines > fcntl (2) - file control > $ man fcntl | head -n1 > FCNTL(2) OpenBSD Programmer's Manual FCNTL(2) > $ man Fcntl | sed -n 4p > Fcntl(3p) Perl Programmers Reference Guide Fcntl(3p) Thank you very much! :) Btw.: The "man Fctl | sed -n 4p" line made me do a little search, because it initially looked to me as if it was printing out the 1st line in response to a command to print the fourth. I was especially befuddled as I first manually copied and pasted the Fcntl man page to a test file and did "cat testfile | sed -n 4p", which produced "Fcntl - load the C Fcntl.h defines" instead of the above. But then I did a "man Fcntl | sed -n 1,10p > testfile" followed by "hexdump -C testfile", and sure enough, there are three line feeds before what I thought was the first line. Oddly enough, this doesn't seem to be the case with all man pages; "man man | sed -n 1,10p | hexdump -C" shows no leading LFs. Just out of curiosity: Why is this? And how come that man(1) seems to ignore leading line feeds when rendering the man pages? Thanks and regards, --ropers

