[Yum-devel] [PATCH] Narrow produced completions down inside helper, bypass compgen -W.

Zdenek Pavlas zpavlas at redhat.com
Thu Dec 22 15:39:43 UTC 2011


> > Not 100% sure about this but it feels wrong.
> > I think extcmds was already split by shell,
> > so this eats escapes.
> 
> The very purpose of that code is to "eat" escapes - the helper may
> receive shell escaped input and we cannot use it for yum pattern
> matching without undoing the escaping.

Well, 'complete -F' is... surprising.  It splits the partial
cmdline to find the first, last, and previous arguments, *using*
the escapes.  But it also keeps escapes in results.. very weird.
So yes, we have to "split" it again.  Thanks for the hint!



More information about the Yum-devel mailing list