On Fri, Jan 18, 2008 at 01:07:31AM +0800, [EMAIL PROTECTED] wrote: > Looking thru all the options to man and apropos, I can't find an > option to avoid me having to type the full name of the page I want > (which is bad if one can't cut and paste with the mouse.) > $ apropos unidec > Text::Unidecode (3pm) - - US-ASCII transliterations of Unicode text > Yes, that's the page I want. I can grudgingly do > $ apropos unidec|cut -f 1 -d ' '|xargs man > but I really wish there was a > man -Z <regexp> > Read all manual pages matching the regexp. > One would first do apropos <regexp> and adjust it to see that it > matches all the pages we want to read, then do man -Z <regexp>. > (-Z --regexp-matches: you give it a good name.)
Looks reasonable. I don't think I have a decent spare short option letter for it (-e -E -r -R are all taken, and -Z is both taken and somewhat meaningless), but how about man -a --regex <regexp>? (Without -a, it would pick the first one it finds, just like man's normal operation.) For compatibility with apropos and whatis, --wildcard would also be reasonable. I don't want to make any more string changes for 2.5.1 now, but I'll look at this after that. For the time being, note that man will search for pages case-insensitively, which makes looking up Perl module manual pages in particular easier on the fingers. Cheers, -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]