Tweaked some messages and added more badcases

This commit is contained in:
Vidar Holen
2012-11-04 21:44:48 -08:00
parent 279e972b61
commit 67d27ea42d
22 changed files with 60 additions and 16 deletions

1
badcase/ampersemi Normal file
View File

@@ -0,0 +1 @@
wget url &; echo "It's backgrounded."

1
badcase/apostrophecked Normal file
View File

@@ -0,0 +1 @@
echo 'Shpell... It's the best!'

3
badcase/badKnR Normal file
View File

@@ -0,0 +1,3 @@
for f in * do
echo "$f"
done

1
badcase/badescape Normal file
View File

@@ -0,0 +1 @@
echo hello\nword

7
badcase/badindenting Normal file
View File

@@ -0,0 +1,7 @@
# Caution, white space sensitive file!
if true
then
cat <<- FOO
Some text
FOO
fi

3
badcase/heredoccasefault Normal file
View File

@@ -0,0 +1,3 @@
cat << EOF
Hello world
Eof

2
badcase/heredoclinefault Normal file
View File

@@ -0,0 +1,2 @@
cat << EOF
Hello world EOF

View File

@@ -1 +1 @@
cat compile.sh |tr -d '\r' > compile.sh
sed 's/foo/bar/g' myfile > myfile

1
badcase/largepositionals Normal file
View File

@@ -0,0 +1 @@
ls ... "9" "$10" # DOS 4ever

1
badcase/lolbackticks Normal file
View File

@@ -0,0 +1 @@
echo `ls`

1
badcase/lonelydollar Normal file
View File

@@ -0,0 +1 @@
echo "$ is special now?"

4
badcase/mvmp3s Normal file
View File

@@ -0,0 +1,4 @@
for f in *.mp3
do
mv $f /music
done

5
badcase/mvmp3sfixed Normal file
View File

@@ -0,0 +1,5 @@
# There, I fixed it!
for f in "$(ls *.mp3)"
do
mv "$f" /music
done

View File

@@ -0,0 +1 @@
echo 'Shpell... It\'s the best!'

View File

@@ -0,0 +1 @@
function foo() { echo bar; }

View File

@@ -0,0 +1 @@
echo Your locales: $(locale)

1
badcase/uuoc Normal file
View File

@@ -0,0 +1 @@
cat foo | grep bar

6
badcase/worseindenting Normal file
View File

@@ -0,0 +1,6 @@
if true
then
cat << FOO
Some text
FOO
fi