source: MondoRescue/branches/2.2.9/mindi-busybox/shell/hush_test/hush-misc/exec.tests@ 2725

Last change on this file since 2725 was 2725, checked in by Bruno Cornec, 13 years ago
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
  • Property svn:executable set to *
File size: 507 bytes
Line 
1# make sure we have a way of checking these things
2cd /proc/$$/fd || cd /dev/fd || exit 1
3
4[ -e 44 ] && exit 1
5exec 44>/dev/null
6[ -e 44 ] || exit 1
7echo pass fd out open
8
9[ -e 55 ] && exit 1
10exec 55>&44
11[ -e 55 ] || exit 1
12echo pass fd out dup
13
14exec 44>&-
15[ -e 44 ] && exit 1
16echo pass fd out close
17
18[ -e 66 ] && exit 1
19exec 66</dev/null
20[ -e 66 ] || exit 1
21echo pass fd in open
22
23[ -e 77 ] && exit 1
24exec 77<&66
25[ -e 77 ] || exit 1
26echo pass fd in dup
27
28exec 66<&-
29[ -e 66 ] && exit 1
30echo pass fd in close
Note: See TracBrowser for help on using the repository browser.