Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bash) Less false positives for keywords in arguments ie, --keyword-flag #2669

Merged
merged 1 commit into from
Sep 5, 2020

Commits on Sep 5, 2020

  1. Make bash treat '-' as a wordchar

    In bash, option, param, and command names may contain builtins as
    hyphen-delimited components. As in `foo --set-bar`.
    
    In order to handle this, just add `-` to the pattern's set of word
    characters. Includes a new test for bash tokens containing keywords,
    which checks hyphens and underscores for a few common cases.
    sirosen committed Sep 5, 2020
    Configuration menu
    Copy the full SHA
    79d5452 View commit details
    Browse the repository at this point in the history