mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 12:37:14 +08:00
Added read/export as variable modifying commands for subshells
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
echo cow | while read foo; do DIR=$foo; done
|
||||
echo $DIR
|
||||
echo cow | read foo
|
||||
echo "$foo"
|
||||
|
3
badcase/subshellvar3
Normal file
3
badcase/subshellvar3
Normal file
@@ -0,0 +1,3 @@
|
||||
export lol=32 &
|
||||
wait
|
||||
echo "$lol"
|
Reference in New Issue
Block a user