tech-userlevel archive

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

Re: man(1): mimic OSX behaviour



On Tue Oct 06 2009 at 11:37:22 +0200, Thomas Klausner wrote:
> On Tue, Oct 06, 2009 at 11:16:31AM +0200, Christoph Egger wrote:
> > 
> > Hi!
> > 
> > On OS X it is possible to specify the manpage filename
> > with a full or relative path like this:
> > 
> > man ./foo.5
> > 
> > or
> > 
> > man /cd/foo/bar.1.gz
> > 
> > This is really helpful to view the manpage quickly while editing it.
> 
> You mean like 'nroff -mandoc filename'?
> Though you'd need 'zcat filename | nroff -mandoc' for the second case.

You need "| $PAGER" too.  Let's face it, the patch makes typing shorter
and easier, and puts everything below one roof (well, assuming it works
as advertised, I didn't look at the code ;).


Home | Main Index | Thread Index | Old Index