OILS / stdlib / osh / byo-server-test.sh View on Github | oilshell.org

73 lines, 42 significant
1#!/usr/bin/env bash
2
3: ${LIB_OSH=stdlib/osh}
4
5source $LIB_OSH/two.sh # module under test
6source $LIB_OSH/bash-strict.sh
7source $LIB_OSH/no-quotes.sh
8source $LIB_OSH/byo-server.sh
9source $LIB_OSH/task-five.sh
10
11no-space(){
12 echo hi
13}
14
15space1 (){
16 echo hi
17}
18
19space2() {
20 echo hi
21}
22
23space3(){ # space
24 echo hi
25}
26
27space12 () {
28 echo hi
29}
30
31space23() { # space
32 echo hi
33}
34
35space123 () { # space
36 echo hi
37}
38
39newline()
40{
41 echo hi
42}
43
44newline1 ()
45{
46 echo hi
47}
48
49test-bash-print-funcs() {
50 local status stdout_file
51
52 #set -x
53 #_bash-print-funcs
54 #set +x
55
56 nq-redir status stdout_file \
57 _bash-print-funcs
58
59 diff -u $stdout_file - <<EOF
60newline
61newline1
62no-space
63space1
64space12
65space123
66space2
67space23
68space3
69test-bash-print-funcs
70EOF
71}
72
73task-five "$@"