[EMAIL PROTECTED] wrote:
> 
> >From [EMAIL PROTECTED] Sun Jun 17 15:29:45 2001
> 
> >> Yes, $PAGER sounds better yet than less. Personally I use less as $PAGER
> >> but I know people that uses emacs, mc, joe...
> 
> >But PAGER isn't always set.  If PAGER isn't set (as it's probably most often
> >the case on Linux systems), I'd use less since this is the standard in
> >Linux.  Now, if even less isn't available, I'd fall back to the least common
> >demoniator being "more".  This is the way it seems to work on linux at what
> >users expect.
> 
> Of course you need some basic knowledge on shell programming:
> 
> Use:
> 
> pager=${PAGER-more}

The editor command is also an alternative on Linux systems, but I'm not
sure 
about it compatibility with other operating systems.

if $(which editor)
  editor someargs
else
  exec ${PAGER:-more} someargs  
fi

This checking looks reasonable?

> 
> eval $pager someargs
> 
> J�rg
> 
>  EMail:[EMAIL PROTECTED] (home) J�rg Schilling D-13353 Berlin
>        [EMAIL PROTECTED]               (uni)  If you don't have iso-8859-1
>        [EMAIL PROTECTED]           (work) chars I am J"org Schilling
>  URL:  http://www.fokus.gmd.de/usr/schilling   ftp://ftp.fokus.gmd.de/pub/unix

-- 
---------------------------
Gleydson Mazioli da Silva
[EMAIL PROTECTED]
[EMAIL PROTECTED]

* O que n�o tem solu��o, solucionado est�.


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to