On 07/26/2014 07:52 PM, Zbigniew Jędrzejewski-Szmek wrote:
> Unfortunately it works only partially. It seems that completions are generated
> properly, but bash doesn't seem to be able to continue after a backslash,
> so one has to copy in the remaining part by hand.
>
> Zbyszek
Hm... (I think)Once we add our own `\' to escape the unit name, the
compgen tests fails to match units. (lines 116, 121 and 225)
That can be avoided in a hack-ish way by escaping `cur' with
`cur=${cur//\\/\\\\}' but when completing the unit like 'dev-<tab> (with
the quote) the additional `\' are still inserted.

So... i'll look more into it, i may be over thinking it. :D
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to