mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 13:13:18 +08:00
Fixed incorrect n=1 & n=foo$n and same for $((n++))
This commit is contained in:
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"
|
Reference in New Issue
Block a user