Skip to content

local OPTIND #447

@izabera

Description

@izabera

shellcheck should recommend to use local OPTIND in case you parse the options with getopts and then call a different function that uses getopts again.
I don't know if shellcheck is sophisticated enough for such things, but it'd definitely be useful, that's not at all an obvious problem.

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