Added subshell variable detection cases

This commit is contained in:
Vidar Holen 2012-11-05 10:29:39 -08:00
parent d2b258434d
commit da8ab3322c
2 changed files with 10 additions and 0 deletions

7
badcase/subshellvar2 Normal file
View 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
View File

@ -0,0 +1,3 @@
( a=3; )
a=4;
echo "$a"