[sbopkg-users] bash completion

Sergey V. sftp.mtuci at gmail.com
Sun Jan 9 00:22:05 UTC 2011


On Saturday 08 of January 2011 06:05:40 slakmagik wrote:

> Thanks for this contribution, but you need to either import have() from
> the main script or drop it and similarly with _get_comp_words_by_ref()
> and _filedir (and the functions those functions call, etc.). I'd prefer
> junking as much as possible from the main script to keep the part broken
> out for sbopkg as small and simple as possible. For instance, _filedir
> seems to try to rewrite a simple 'compgen -f' just for filenames with
> spaces. But whatever makes it work. That's all I see right off, as I
> haven't looked at it very closely yet.

Sorry, forgot to say, sbopkg completion script written for bash-completion-1.2 
or above (slackbuild attached).

have(), _get_comp_words_by_ref() and _filedir is builtin functions of bash-
completion-1.2.

We can't just s/_filedir/compgen -f/, it will does not works.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bash-completion-slackbuild.tar.gz
Type: application/x-compressed-tar
Size: 4832 bytes
Desc: not available
URL: <http://sbopkg.org/pipermail/sbopkg-users/attachments/20110109/2017f999/attachment.bin>


More information about the sbopkg-users mailing list