repo.or.cz
/
bush.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
init version.
[bush.git]
/
tests
/
6.cmd
/
read
/
read.right
blob
114408376c3ae5191b6071b72bda9a185eb4cca7
1
a.
2
-a-b-
3
-a-b -
4
-a b-
5
-a b-
6
-a-b\-
7
-a b\-
8
-\-a b\-
9
-\ a b\-
10
-\-a b\-
11
-\ a b\-
12
argv[1] = <^A>
13
argv[1] = <^A>
14
argv[1] = <^?>
15
argv[1] = <^?>
16
argv[1] = <abcd>
17
1: x[A] y[B] z[]
18
1a:
19
2: x[A B]
20
[A B ]
21
[ A B ]
22
==aa==
23
====
24
====
25
argv[1] = < foo>
26
argv[1] = < foo>
27
argv[1] = <foo>
28
argv[1] = < foo>
29
argv[1] = <foo>
30
argv[1] = <foo>
31
argv[1] = < foo>
32
a = abcdefg
33
a = xyz
34
a = -xyz 123-
35
a = abc
36
timeout 1: ok
37
38
timeout 2: ok
39
40
./read2.sub: line 36: read: -3: invalid timeout specification
41
1
42
43
abcde
44
./read3.sub: line 17: read: -1: invalid number
45
abc
46
ab
47
abc
48
#
49
while read -u 3 var
50
do
51
echo "$var"
52
done 3<$0
53
argv[1] = <>
54
argv[1] = <>
55
argv[1] = <>
56
FOO
57
argv[1] = <>
58
argv[1] = <3>
59
argv[1] = <>
60
argv[2] = <>
61
argv[3] = <>
62
FOO
63
0 0 0
64
0
65
0
66
1