Skip to content

[discuss] Suffix all bash scripts with .sh #46

@27Bslash6

Description

@27Bslash6

Use .sh or .bash extension if file is meant to be included/sourced. Never on executable script.

I'm curious about the philosophy of NOT including .sh as a suffix for scripts.

The main reason I always suffix shell scripts with .sh is to make shellcheck linting simpler. A makefile rule with find . -type f -name '*.sh' | xargs shellcheck is the simplest way I know to ensure quality control for all scripts in a repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions