Re: [Apachetoolbox-devel] paging revisited
Brought to you by:
bryanandrews
|
From: Toni M. <su...@oe...> - 2002-07-12 19:24:48
|
Hi,
On Fri, Jul 12, 2002 at 08:43:34PM +0200, Toni Mueller wrote:
> well, i've just hacked something non-functional on etc/functions.conf
> which should enable paging. Somehow it doesn't work, only I don't
> know why...
I still don't understand the problem, but I've fixed it. The
modified function reads like this (tested only with my std
setting of PAGER=/bin/less plus some LESSxxx vars):
#shows the help file for all the mods
print_descriptions()
{
### find pager if possible:
P=cat
if [ X"${PAGER}" != X ]; then
P=${PAGER}
else
for i in /usr/bin/less /usr/local/bin/less \
/bin/less /usr/bin/more /bin/more ; do
if [ -x $i ]; then
P=$i
break
fi
done
fi
T=${TERM}
env - TERM=$T $P $root/etc/help
echo "See $root/etc/help for more info."
}
Best,
--Toni++
|