#### For bugs - Rule Id (if any, e.g. SC1000): SC2154 - My shellcheck version (`shellcheck --version` or "online"): online - [X] 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: ```sh #!/bin/bash var=howdy; printf -v 'array[0]' %s "$var"; printf %s\\n "${array[@]}"; ``` #### Here's what shellcheck currently says: ``` Line 4: printf %s\\n "${array[@]}"; ^-- SC2154: array is referenced but not assigned. ``` #### Here's what I wanted or expected to see: Nothing
For bugs
shellcheck --versionor "online"): onlineHere's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
Here's what I wanted or expected to see:
Nothing