Skip to content

install fails on /etc/bash_completion.d/mscs #355

@icolwell

Description

@icolwell

I recently tried installing mscs on an Ubuntu 22 server. I got this error:

install -m 0755 msctl /usr/local/bin/msctl
install -m 0755 mscs /usr/local/bin/mscs
install -m 0644 mscs.completion /etc/bash_completion.d/mscs
install: cannot create regular file '/etc/bash_completion.d/mscs': No such file or directory
make: *** [Makefile:34: update] Error 1

I investigated and found that my server has no /etc/bash_completion.d directory even though the bash-completion apt package is installed.
I found this stackexchange discussion saying that /etc/bash_completion.d/ is a legacy dir and bash completions should instead go into /usr/share/bash-completion/completions/.

I also looked in /usr/share/bash-completion/completions/ on my barebones Ubuntu 22 server and found it full of completion files, so it does seems like this is where the completion file should live.

I wonder though, is this something unique to Ubuntu? or do modern Debian releases and other linux distros also use /usr/share/bash-completion/completions/?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions