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

Bug: not checking if function exists when containing variables as part of the call. #1079

Open
2 tasks done
nihilus opened this issue Dec 21, 2017 · 0 comments
Open
2 tasks done

Comments

@nihilus
Copy link

nihilus commented Dec 21, 2017

For bugs

  • Rule Id (if any, e.g. SC1000):
  • My shellcheck version ("0.4.7"):
  • I tried on shellcheck.net and verified that this is still a problem on the latest commit
  • It's not reproducible on shellcheck.net, but I think that's because it's an OS, configuration or encoding issue

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

#!/your/interpreter
foo(){
...
}

foo"$bar"

Here's what shellcheck currently says:

Nothing

Here's what I wanted or expected to see:

It should yield an error since eiether I want to call 'foo "$bar"' or 'foo$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