Ainsi parlait Borsenkow Andrej :
> On ���, 2002-01-25 at 20:31, Guillaume Rousse wrote:
> > Ainsi parlait Guillaume Rousse :
> > > Ainsi parlait Han :
> > > > Guillaume Rousse ([EMAIL PROTECTED]) wrote:
> > > > > Could the patches proposed here about completion be included into
> > > > > official mandrake bash package, or "not until they are accepted by
> > > > > bash developpers" ?  http://www.caliban.org/bash/index.shtml
> > > >
> > > > Check the rpm package in my url ;)
> > >
> > > Thanks !
> >
> > And here is the urpmi completion for bash :-)
> > # Mandrake urpmi
> > #
> > have urpmi &&
> > _urpmi()
> > {
> >     COMPREPLY=()
> >     local gcmd
> >
> >     # if we have a partial word to complete, restrict completions to
> >     # matches of that word
> >     [ -n "$2" ] && gcmd='grep "^$2"' || gcmd=cat
> >
> >     COMPREPLY=( $( gzip -dc /var/lib/urpmi/synthesis.hdlist.* |\
> >     awk 'BEGIN {FS="@"} /info/ {print $1}' | sort -u | eval $gcmd ) )
> >
> > }
> > [ "$have" ] && complete -F _urpmi urpmi
>
> And you call *that* completion?! :-) Here is what I call completion:
Well, that was only a first quick try :-) I'll try harder.
-- 
Guillaume Rousse <[EMAIL PROTECTED]>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html

Reply via email to