View Single Post
  #5   (View Single Post)  
Old 24th October 2011
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by Carpetsmoker View Post
To expand on the previous answers:

From man(1)

Code:
     -P pager
             Use specified pager.  Defaults to “less -sR” if color support is
             enabled, or “more -s”.  Overrides the MANPAGER environment vari‐
             able, which in turn overrides the PAGER environment variable.
Using % man cat | less is exactly the same as just using % man less.
I must be missing something here. Could you please explain above. On my (arguably OpenBSD desktop)

% man cat | less

piples man pages for command cat into less thereby allowing regular expression search vi style.
% man less
Just gives me man pages for command less.

You seem to claim that those two are the same. Could you please explain?
Reply With Quote