mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-21 05:43:51 -07:00
Fixed incorrect n=1 & n=foo$n and same for $((n++))
This commit is contained in:
parent
5d26f627cf
commit
ad9db04856
4 changed files with 71 additions and 44 deletions
3
badcase/subshellvar4
Normal file
3
badcase/subshellvar4
Normal file
|
@ -0,0 +1,3 @@
|
|||
n=0;
|
||||
mycmd | while read foo; do rm "$foo"; ((n++)); done
|
||||
echo "Deleted $n files"
|
Loading…
Add table
Add a link
Reference in a new issue