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

Add a shebang: Autofix/Online suggestion #1506

Open
4 tasks done
stdedos opened this issue Mar 4, 2019 · 0 comments
Open
4 tasks done

Add a shebang: Autofix/Online suggestion #1506

stdedos opened this issue Mar 4, 2019 · 0 comments

Comments

@stdedos
Copy link
Contributor

stdedos commented Mar 4, 2019

For bugs

  • Rule Id (if any, e.g. SC1000): SC2148
  • My shellcheck version (shellcheck --version or "online"): online
  • The rule's wiki page does not already cover this (e.g. https://shellcheck.net/wiki/SC2086)
  • I tried on shellcheck.net and verified that this is still a problem on the latest commit

For new checks and feature suggestions

Here's a snippet or screenshot that shows the problem:

Sometimes, I am trying to check one piece of code, rather than an entire file and/or I am building a command chain for the terminal. I'd like shellcheck to show me the way, but shebang can be a repetitive task.

Here's what shellcheck currently says:

^-- SC2148: Tips depend on target shell and yours is unknown. Add a shebang.

Here's what I wanted or expected to see:

^-- SC2148: Tips depend on target shell and yours is unknown. Add a shebang. #!/bin/bash, #!/bin/dash, #!/bin/sh, #!/bin/ksh

With hyperlink-autofix on the warning (like here) or on the "top bar"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant