You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this requires a new check, or fixing the existing checks.
Here's a snippet or screenshot that shows the problem:
(A bit of background in case the code is a bit confusing. This is in a build script that builds Open vSwitch RPMs, but since they take a while to build, and rarely change, the script checks an internal file server to see if the RPMs for the right version already exist, and wget's them if they do)
bash: syntax error near unexpected token `<(cat ovs-rpms.txt)'
Basically, shellcheck knows something is wrong, but misidentifies the issue (or doesn't catch it earlier in the parsing). Took me a while to figure out what was wrong, and had to run a simplified version in the shell to figure it out, then looked up the BashFAQ entry to remember how to do the redirect right.
The text was updated successfully, but these errors were encountered:
For bugs
shellcheck --version
or "online"): onlineFor new checks and feature suggestions
Not sure if this requires a new check, or fixing the existing checks.
Here's a snippet or screenshot that shows the problem:
(A bit of background in case the code is a bit confusing. This is in a build script that builds Open vSwitch RPMs, but since they take a while to build, and rarely change, the script checks an internal file server to see if the RPMs for the right version already exist, and wget's them if they do)
Correct code is:
(Note the additional
<
character on the "done" line)Here's what shellcheck currently says:
Here's what I wanted or expected to see:
Here's what bash says:
Basically, shellcheck knows something is wrong, but misidentifies the issue (or doesn't catch it earlier in the parsing). Took me a while to figure out what was wrong, and had to run a simplified version in the shell to figure it out, then looked up the BashFAQ entry to remember how to do the redirect right.
The text was updated successfully, but these errors were encountered: