Re: systemd-fsck?
Roger Lynn <Roger@rilynn.me.uk> writes:
> On 13/05/14 20:30, Salvo Tomaselli wrote:
>> In data martedì 13 maggio 2014 19:42:32, David Goodenough ha scritto:
>>>> service foo <action> works across Linux distributions, with or without
>>>> systemd, and does the right thing.
>>> The big shame with service is that tab completion does not work properly.
>>> If I use /etc/init.d/ then tab tells me what is there and spells it right.
>> You should install bash-completion
> Bash-completion has never worked for me from a root prompt.
bash-completion is loaded from /etc/profile, which is only sourced by bash
for a login shell. I suspect that you're using su, which does not create
a login shell. In that case, only /etc/bash.bashrc is sourced, and its
code to load bash-completion for interactive shells is commented out. (I
don't know why.)
I just confirmed that bash-completion works properly with service as root
if you run . /etc/profile.d/bash_completion.sh first.
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: