1 |
|
2 | # I think <> is just stdin for now
|
3 | # Later we could add
|
4 | #
|
5 | # < >
|
6 | # < *.py README.md >
|
7 | # etc.
|
8 |
|
9 | seq 3 | for x in (io.stdin) {
|
10 | echo "-$x-"
|
11 | }
|
12 | echo
|
13 |
|
14 | seq 3 | for i, x in (io.stdin) {
|
15 | echo "$i $x"
|
16 | }
|
17 | echo
|
18 |
|
19 | echo 'empty'
|
20 |
|
21 | fopen < /dev/null {
|
22 | for x in (io.stdin) {
|
23 | echo "$x"
|
24 | }
|
25 | }
|
26 |
|
27 | echo 'done'
|
28 | echo
|
29 |
|
30 | echo 'empty2'
|
31 |
|
32 | for x in (io.stdin) {
|
33 | echo "$x"
|
34 | } < /dev/null
|
35 |
|
36 | echo 'done2'
|
37 | echo
|
38 |
|
39 | echo 'space'
|
40 |
|
41 | echo 'hi' | for x in ( io.stdin ) {
|
42 | echo "$x"
|
43 | }
|