mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-14 02:27:30 -07:00
Added subshell variable detection cases
This commit is contained in:
parent
d2b258434d
commit
da8ab3322c
2 changed files with 10 additions and 0 deletions
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"
|
Loading…
Add table
Add a link
Reference in a new issue