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

export unset_variable should trigger SC2154 #1572

Open
3 tasks done
kbulygin opened this issue May 6, 2019 · 0 comments
Open
3 tasks done

export unset_variable should trigger SC2154 #1572

kbulygin opened this issue May 6, 2019 · 0 comments

Comments

@kbulygin
Copy link

kbulygin commented May 6, 2019

For bugs

  • Rule Id (if any, e.g. SC1000):
  • My shellcheck version (shellcheck --version or 'online'): online
  • 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:

#!/bin/bash
export x

Here's what shellcheck currently says:

Nothing

Here's what I wanted or expected to see:

SC2154: x is referenced but not assigned.
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