Skip to content

Generated bash completion scripts are set executable #104

@sgallagher

Description

@sgallagher

Bash completion scripts should have permissions 0644, but they are generated by argbash as 0755 and have #!/usr/bin/bash at the top (notably, this includes the generated completion script for argbash itself).

This can actually cause problems for RPM packaging, as it will add a runtime dependency on /usr/bin/bash if it sees an executable script with such a hashbang in the %files payload.

Bash completion scripts are always loaded by the bash binary and serve no purpose when executed directly, so there really isn't any advantage to making them executable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions