Last change
on this file since 3360 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:executable
set to
*
|
File size:
507 bytes
|
Rev | Line | |
---|
[3320] | 1 | # make sure we have a way of checking these things
|
---|
| 2 | cd /proc/$$/fd || cd /dev/fd || exit 1
|
---|
| 3 |
|
---|
| 4 | [ -e 44 ] && exit 1
|
---|
| 5 | exec 44>/dev/null
|
---|
| 6 | [ -e 44 ] || exit 1
|
---|
| 7 | echo pass fd out open
|
---|
| 8 |
|
---|
| 9 | [ -e 55 ] && exit 1
|
---|
| 10 | exec 55>&44
|
---|
| 11 | [ -e 55 ] || exit 1
|
---|
| 12 | echo pass fd out dup
|
---|
| 13 |
|
---|
| 14 | exec 44>&-
|
---|
| 15 | [ -e 44 ] && exit 1
|
---|
| 16 | echo pass fd out close
|
---|
| 17 |
|
---|
| 18 | [ -e 66 ] && exit 1
|
---|
| 19 | exec 66</dev/null
|
---|
| 20 | [ -e 66 ] || exit 1
|
---|
| 21 | echo pass fd in open
|
---|
| 22 |
|
---|
| 23 | [ -e 77 ] && exit 1
|
---|
| 24 | exec 77<&66
|
---|
| 25 | [ -e 77 ] || exit 1
|
---|
| 26 | echo pass fd in dup
|
---|
| 27 |
|
---|
| 28 | exec 66<&-
|
---|
| 29 | [ -e 66 ] && exit 1
|
---|
| 30 | echo pass fd in close
|
---|
Note:
See
TracBrowser
for help on using the repository browser.