aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/read.out
blob: 43b016db30eabaab5a280ad6677e11270e5ec606 (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
2
2
1
[one
two]
1
[one
two]
1
[one
two
]

1 'hello' 1 'there'
1 'hello there'
1 ''
1 '' 1 ''
1 'test' 1 '' 1 ''
1 'foo' 1 'bar' 1 '  baz'
0 a

1 'hello'
1 'h' 1 'ello'
1 'h' 1 'e' 1 'llo'
1 ''
1 't' 1 ''
1 't' 1 '' 1 ''
1 ' ' 1 't'

2 'hello' 'there'
1 'hello'
6 'this' 'is' 'a' 'bunch' 'of' 'words'
3 'one' 'two' 'three'
0

5 'h' 'e' 'l' 'l' 'o'
1 'h'
0

# read -n tests
tes
test
test
tes
tin
t

# read -z tests
testing
test ing
newline

1 'test' 1 'ing'
1 'test' 1 ''
1 'foo' 1 'bar'
2 'foo' 'bar'
2 'baz' 'quux'