OILS
/
spec
/
testdata
/
ysh-read-0.sh
View on Github
|
oilshell.org
35 lines, 27 significant
1 |
|
2 | echo 'read -r'
|
3 | seq 2 | {
|
4 | read -r
|
5 | echo REPLY=$REPLY
|
6 |
|
7 | read -r
|
8 | echo REPLY=$REPLY
|
9 | }
|
10 | echo
|
11 |
|
12 | echo 'read --raw-line'
|
13 | seq 2 | {
|
14 | read --raw-line
|
15 | echo _reply=$_reply
|
16 |
|
17 | read --raw-line
|
18 | echo _reply=$_reply
|
19 | }
|
20 | echo
|
21 |
|
22 | echo 'Mixed'
|
23 | seq 4 | {
|
24 | read -r
|
25 | echo REPLY=$REPLY
|
26 |
|
27 | read -r
|
28 | echo REPLY=$REPLY
|
29 |
|
30 | read --raw-line
|
31 | echo _reply=$_reply
|
32 |
|
33 | read -r
|
34 | echo REPLY=$REPLY
|
35 | }
|