[systemd-devel] [PATCH 11/11] Make redirections work with the bash command completions

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Thu Jun 19 20:28:32 PDT 2014


On Mon, Jun 16, 2014 at 02:59:34PM +0200, Dr. Werner Fink wrote:
> On Fri, Jun 13, 2014 at 07:09:50PM +0300, Ran Benita wrote:
> > From a cursory look, the bash-completion package deals with this issue
> > in a more systematic way. See _init_completion() in
> > /usr/share/bash-completion/bash_completion. Maybe it's worthwhile to
> > (conditionally?) use that if possible.
Yes! I didn't know that this exists... We should make use of it if it
is available.

> Hmmm ... I'd like not to loose the possibility to use completions for
> e.g. systemctl without having bash-completion installed.  This because
> there *are* users out here which do *not* use nor install bash-completion
> package (or deinstall bash-completion).  And I do not speak for my person
> as I use bash-completion but as a package maintainer.  IMHO my patch is
> correct and allow to redirect the output of e.g.  systemctl status.
This patch works only for one type of redirection... Too much of a hack,
especially that we have the full solution ready for us.

Zbyszek


More information about the systemd-devel mailing list