source: trunk/essentials/app-shells/bash/tests/read1.sub

Last change on this file was 3228, checked in by bird, 18 years ago

bash 3.1

File size: 244 bytes
Line 
1a=7
2echo 'abcdefg|xyz' | {
3 read -d '|' a
4 echo a = "${a-unset}"
5}
6
7echo xyz 123 | {
8 read -d ' ' a
9 echo a = "${a-unset}"
10}
11
12echo xyz 123 | {
13 read -d $'\n' a
14 echo a = -"${a-unset}"-
15}
16
17a=44
18echo abcd | {
19 read -d d a
20 echo a = $a
21}
22
23exit 0
Note: See TracBrowser for help on using the repository browser.