The test cases are fun, but not up to date. The unit tests are better.

This commit is contained in:
Vidar Holen 2013-01-23 17:18:18 -08:00
parent 0c66cfb936
commit 02efc2e945
52 changed files with 0 additions and 96 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1 +0,0 @@
sed 's/foo/bar/g' myfile > myfile

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,2 +0,0 @@
# When the network goes down, the backup gets deleted
[[ ! -z backup ]] && scp backup host: || rm backup

View File

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

View File

@ -1 +0,0 @@
until [ $var > $foo ]; do var=$(cow); done

View File

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

View File

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

View File

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

View File

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

View File

@ -1,2 +0,0 @@
echo cow | read foo
echo "$foo"

View File

@ -1,7 +0,0 @@
for f in *
do
echo "Processing: $f"
done | tee log
echo "Done. Last processed was $f."

View File

@ -1,3 +0,0 @@
export lol=32 &
wait
echo "$lol"

View File

@ -1,3 +0,0 @@
n=0;
mycmd | while read foo; do rm "$foo"; ((n++)); done
echo "Deleted $n files"

View File

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

View File

@ -1 +0,0 @@
strace foo 2>&1 > allmessages

View File

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

View File

@ -1 +0,0 @@
myapp $@

View File

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

View File

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

View File

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

View File

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

View File

@ -1,2 +0,0 @@
echo hello
echo world

View File

@ -1 +0,0 @@
echo one; echo two

View File

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

View File

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

View File

@ -1 +0,0 @@
for f; do echo "$f"; done

View File

@ -1,3 +0,0 @@
cat << FOO
test
FOO

View File

@ -1 +0,0 @@
if true; then echo foo; fi

View File

@ -1,4 +0,0 @@
if file foo 2>&1 | grep lol 2> /dev/null
then
echo cow
fi

View File

@ -1 +0,0 @@
if [[ $B == 3 ]]; then echo cow; fi

View File

@ -1 +0,0 @@
echo cow > file

View File

@ -1 +0,0 @@
echo lol 2> /dev/null

View File

@ -1 +0,0 @@
cmd > /dev/null 2>&1

View File

@ -1 +0,0 @@
echo hello

View File

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