Re: dict not piping through less/pager



Chris Davies <chris-usenet@xxxxxxxxxxxx>:
johnny bobby bee <useraddshine-no_spam_eh@xxxxxxxx> wrote:
Nothing in examples but which servers dict is going to use, i assume.

Exactly. There is nowhere in ~/.dictrc that allows you to define a
pager. Ergo, it must have been something outside dict itself.


The --pager switch is deprecated, so all i want is dict to pipe the
output to less [...]

I think someone else has already suggested that you alias dict in your
.bashrc.

dict() { /usr/bin/dict "$@" | ${PAGER:-less}; }

Run it by inetd (inetd.conf):

dict stream tcp nowait root /usr/sbin/tcpd /usr/sbin/dictd -i

Modern computers make startup time negligible.


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
.



Relevant Pages