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
Here's a snippet or screenshot that shows the problem:
#! /usr/bin/env bashget_new_content() {
sed 's/Initial/Final/g'"${1:?}"
}
echo'Initial content.'> f
cat f
# SHELLCHECK RULE TRIGGERED HERE:
cat <<<"$(get_new_content f)"> f
cat f
As far as I know, this does not use the same pipeline and works perfectly reliably.
For bugs
shellcheck --version
or "online"): Bundled plugin in IntelliJ IDEA 2022.1.3.Here's a snippet or screenshot that shows the problem:
Output:
(Also see, if you will, that SO answer I just created regarding that trick: https://stackoverflow.com/a/73054135/9089759)
Here's what shellcheck currently says:
Make sure not to read and write the same file in the same pipeline.
Here's what I wanted or expected to see:
Nothing.
The text was updated successfully, but these errors were encountered: