Skip to content

Remove check-extra-masked-returns "harmless commands" list? #2391

Description

@scop

Wouldn't we be better off without the "harmless commands" list in check-extra-masked-returns, and give people who want to enable the optional check what they ask for, all the way? I was surprised to find dirname didn't trigger this warning in my script while other commands did.

All the commands in the current list can fail due to a number of reasons, including but not limited to usage errors (different options accepted between shells and OS's), and all of them cannot be even guaranteed to be always available (shopt being the most likely suspect in the current list).

I think these kinds of errors are in the same category that lead to rejection of the cat <<EOF addition to the list in #2359 (comment)

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