🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #156

Re: gethostent call in readline.c

#156
From: Simon E Spero
Date: Fri, 23 Jun 1989 15:32
19 lines
1500 bytes
 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
------------------------------------------------------------------------------
Technical Details
Message-ID: <ZMACX07.89Jun23163209@tsun2.doc.ic.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!mcvax!ukc!icdoc!gould!zmacx07
References: <142@unmvax.unm.edu> <8906141530.AA11840@aurel.caltech.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <ZMACX07.89Jun23163209@tsun2.doc.ic.ac.uk>
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