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
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
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:
#!/usr/bin/env bashshopt -s execfail # allow exec to fail-throughexec command1 "$@"exec command2 "$@"echo"Failed to find either 'command1' or 'command2', check installation"exit 1
Here's what shellcheck currently says:
Line 3 SC2093: Remove "exec " if script should continue after this command.
Here's what I wanted or expected to see:
No such error. execfail is set so the script will continue if the exec on line 3 fails. Given that execfail is set, I think the user understands the consequences. Now, if execfail was not set, then yes, then SC2093 should apply.
The text was updated successfully, but these errors were encountered:
For bugs
shellcheck --version
or '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:
No such error.
execfail
is set so the script will continue if the exec on line 3 fails. Given thatexecfail
is set, I think the user understands the consequences. Now, ifexecfail
was not set, then yes, then SC2093 should apply.The text was updated successfully, but these errors were encountered: