Added some test cases, not all of which are supported yet

This commit is contained in:
Vidar Holen 2012-11-04 18:10:51 -08:00
parent cde1e2966f
commit a7afa32075
22 changed files with 28 additions and 0 deletions

1
badcase/alphaltnum Normal file
View file

@ -0,0 +1 @@
if [[ $V < 3 ]]; then echo foo; fi

1
badcase/dollarassign Normal file
View file

@ -0,0 +1 @@
$FOO=3

1
badcase/forinls Normal file
View file

@ -0,0 +1 @@
for f in `ls *.jpg`; do echo "$f"; done

1
badcase/intosame Normal file
View file

@ -0,0 +1 @@
cat compile.sh |tr -d '\r' > compile.sh

1
badcase/missingspacetest Normal file
View file

@ -0,0 +1 @@
if [[foo ]]; then echo lol; fi

1
badcase/semicolonthen Normal file
View file

@ -0,0 +1 @@
if [[ foo ]]; then; echo lol; fi

1
badcase/spaceassign1 Normal file
View file

@ -0,0 +1 @@
LOL = 3

1
badcase/spaceassign2 Normal file
View file

@ -0,0 +1 @@
LOL= 3

1
badcase/spaceassign3 Normal file
View file

@ -0,0 +1 @@
LOL =3

2
badcase/subshellvar Normal file
View file

@ -0,0 +1,2 @@
echo cow | while read foo; do DIR=$foo; done
echo $DIR

2
badcase/unexpanded Normal file
View file

@ -0,0 +1,2 @@
foo=bar
echo $file | sed -e 's/$foo/baz/g'

1
badcase/unquotedtest Normal file
View file

@ -0,0 +1 @@
if [ -f $foo ]; then echo cow; fi