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

Consider adding shellcheck-repl #804

Open
HenrikBengtsson opened this issue Nov 24, 2022 · 0 comments
Open

Consider adding shellcheck-repl #804

HenrikBengtsson opened this issue Nov 24, 2022 · 0 comments

Comments

@HenrikBengtsson
Copy link

(Disclaimer: I'm one of the authors)

This tool adds ShellCheck protection on top of your Bash read-eval-print loop (REPL). For example, typing the following at the prompt and hitting ENTER:

$ for w in "$words"; do echo "$w"; done

prevents it from being evaluated with the following message:

$ for w in "$words"; do echo "$w"; done
           ^-- SC2066: Since you double quoted this, it will
	       not word split, and the loop will only run once.

This gives you a chance to fix the mistake before re-submitting.

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

No branches or pull requests

2 participants