test/main
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# tests function inheretence
println() {
printf "%s.\n" "$1"
}
# hewo
ls
PASSTHROUGH=bananas
# fix perms
uname -a
# tests waiting for output
sleep 2; echo hi
# check all env vars
env
# test invalid code and print it
# ls /asfj
# test another script inclusion
# todo
zoa-script 2-call-me-from-anotha
# . ./test/2-call-me-from-anotha
echo i am main
if [ "$(uname -n)" = "nostromo" ]; then
echo NOSTROMO
fi
echo $HOSTNAME
zoa-script 3-more
cat >/tmp/trashcan <<EOF
hello i am a trash can man :3
EOF
echo $PASSTHROUGH
zoa-file demo /tmp/zoa-file-test echo $PASSTHROUGH
ls /tmp/zoa-file-test