Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!mcvax!ukc!icdoc!gould!zmacx07 From: zmacx07@doc.ic.ac.uk (Simon E Spero) Newsgroups: gnu.bash.bug Subject: Re: gethostent call in readline.c Message-ID: Date: 23 Jun 89 15:32:09 GMT References: <142@unmvax.unm.edu> <8906141530.AA11840@aurel.caltech.edu> Sender: news@doc.ic.ac.uk Distribution: gnu Organization: The Society of the Department of Computing, Imperial College Lines: 19 In-reply-to: bfox@AUREL.CALTECH.EDU's message of 14 Jun 89 15:30:14 GMT I have been playing around with the hostname completion stuff, and I've added a cache to hostname_completion_function. The first time the user tries to expand a hostname, the cache is filled before the match made. Subsequent calls use the cache information, which is refreshed after a fixed period of time. It appears to work, but I don't know how suitable it would be for people on the internet. This technique can also be applied to usernames, as both of these values are fairly static. If anybody is interested, I will post the patches, but they are still a bit grotty at the moment Simon -- ------------------------------------------------------------------------------ MAC-FREE | My Opinons are precisely that | "We Don't take no sh*t from a ZONE | No Liability accepted | machine"- Moontrap ------------------------------------------------------------------------------