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
$ shellcheck rd.sh
In rd.sh line 13:
output_both >&${out_fd} 2>&${out_fd}
^-- SC2261 (error): Multiple redirections compete for stderr. Use cat, tee, or pass filenames instead.
^-- SC2261 (error): Multiple redirections compete for stderr. Use cat, tee, or pass filenames instead.
For more information:
https://www.shellcheck.net/wiki/SC2261 -- Multiple redirections compete for...
Here's what I wanted or expected to see:
Nothing. The rule should not trigger.
The redirections in the example don’t “compete” for stderr or any
other fd for that matter. $out_fd refers to a file and both stdout
and stderr are correctly redirected to that file.
The text was updated successfully, but these errors were encountered:
shellcheck --version
or "online"):still a problem on the latest commit
Here'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. The rule should not trigger.
The redirections in the example don’t “compete” for stderr or any
other fd for that matter.
$out_fd
refers to a file and both stdoutand stderr are correctly redirected to that file.
The text was updated successfully, but these errors were encountered: