mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 06:22:32 +08:00
Added subshell variable detection cases
This commit is contained in:
7
badcase/subshellvar2
Normal file
7
badcase/subshellvar2
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
for f in *
|
||||||
|
do
|
||||||
|
echo "Processing: $f"
|
||||||
|
done | tee log
|
||||||
|
|
||||||
|
echo "Done. Last processed was $f."
|
||||||
|
|
3
goodcase/subshellvar
Normal file
3
goodcase/subshellvar
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
( a=3; )
|
||||||
|
a=4;
|
||||||
|
echo "$a"
|
Reference in New Issue
Block a user