bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

updated service completion patch for bash 2.05a


From: Ian Macdonald
Subject: updated service completion patch for bash 2.05a
Date: Thu, 7 Feb 2002 17:38:47 -0800
User-agent: Mutt/1.2.5.1i

Hi,

Here's an updated copy of my service completion patch for bash 2.05a.

After applying this patch, you'll be able to do this:

$ complete -s foo
$ foo <Tab>

and have bash complete on services in /etc/services (or NIS, LDAP or
whatever).

Basically, the patch just implements getservent() in the same way
complete -g calls getgrent() and -u calls getpwent().

Chet, this patch is a superior version of the one I submitted to you a
while back.

It has one bug, however, namely that attempting to complete on an
empty parameter will return a full list of services MINUS those listed
as aliases (see services(5)).

Full details of my completion stuff can be found at:

http://www.caliban.org/bash/index.shtml#completion

Ian
-- 
Ian Macdonald               | Q. What's the capital of Canada? A.
address@hidden             | American. 
                            | 
                            | 
                            | 

Attachment: bash-2.05a-service_completion.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]