1 ## oils_failures_allowed: 1
2
3 #### help topics that are embedded
4 help > help.txt
5 echo no args $?
6
7 for topic in help oils-usage {osh,ysh}-usage {osh,ysh}-chapters; do
8 help $topic > $topic.txt
9 echo $topic $?
10 done
11
12 help zz > zz.txt
13 echo zz $?
14 ## STDOUT:
15 no args 0
16 help 0
17 oils-usage 0
18 osh-usage 0
19 ysh-usage 0
20 osh-chapters 0
21 ysh-chapters 0
22 zz 1
23 ## END
24
25 #### help topics that are linked
26 help com-sub | grep -o chap-word-lang.html
27 echo status=$?
28
29 help read | grep -o chap-builtin-cmd.html
30 echo status=$?
31
32 ## STDOUT:
33 chap-word-lang.html
34 status=0
35 chap-builtin-cmd.html
36 status=0
37 ## END
38
39 #### help shows 'ysh-chapters' topic
40
41 # doesn't show ANSI text unless TTY
42 help | grep ysh-chapters
43
44 echo status=$?
45
46 ## STDOUT:
47 TODO fix dev-minimal ~~~ ysh-chapters ~~~
48 status=0
49 ## END
50