So sprach [EMAIL PROTECTED] am Sun, Jun 17, 2001 at 03:31:58PM +0200:
> Of course you need some basic knowledge on shell programming:
> 
> Use:

NOT!

> pager=${PAGER-more}

pager=${PAGER-less} if you don't want to surprise a lot of Linux users who
are used to the comfort of less.

And you should add this for users who are so unfortunate to still have to
use more:

which $pager 2>/dev/null || pager=more
which $pager 2>/dev/null || unset pager

if [ "x$pager" == "x" ]; then
        echo no pager can be found
        exit 1
fi

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:       http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
                Uptime: 21 hours 58 minutes


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

Reply via email to