* Chet Ramey <[EMAIL PROTECTED]> [2008-03-18 00:22]:
>> I'd like to know if it is possible to change the options of the
>> programable completion within the completion function.
>
> Not currently.  I'm thinking about a new builtin that would accept the
> same set of -o options as complete/compgen (and probably +o to turn
> them off, as with the `set' builtin).

Yes, something like this would be very useful for the programable
completion.

But in the meantime can you describe what exactly these options do?

My understanding is this:
nospace: No not append a space after a completion even if it's the only
one.
filenames: Quote shell meta-characters and append a / if the sole
completion is a directory
dirnames: Has no effect if the compspec generates no matches?

So probably at least filenames could be emulated by the completion
function, right?

Regards,
 Mika


Reply via email to