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

request: warn on simple infinite recursion #2742

Open
2 tasks done
mcandre opened this issue Apr 20, 2023 · 0 comments
Open
2 tasks done

request: warn on simple infinite recursion #2742

mcandre opened this issue Apr 20, 2023 · 0 comments

Comments

@mcandre
Copy link

mcandre commented Apr 20, 2023

For new checks and feature suggestions

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

#!/bin/sh
$0

or

#!/bin/sh
exec $0

Here's what shellcheck currently says:

N/A

Here's what I wanted or expected to see:

Warning: Risk of infinite recursion. Supply at least one CLI argument to the command $0.

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