Open nihilus opened 7 years ago
@nihilus just fyi that a tool I use along with shellcheck catches this, might want to add to the belt.
cat <<'EOF' | shfmt
var="foo"
echo "${#$var}"
EOF
2:11: $ cannot be followed by a word
@mmlb nice tool, I integrated it today as part of our buildprocess.
For new checks and feature suggestions
Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
No issues detected!
Here's what I wanted or expected to see:
Something about 'bad substitution'.