Last change
on this file since 2794 was 2725, checked in by Bruno Cornec, 14 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:
393 bytes
|
Rev | Line | |
---|
[2725] | 1 | bug() {
|
---|
| 2 | trap : exit
|
---|
| 3 | # Bug was causing sh to be run in subshell,
|
---|
| 4 | # as if this line is replaced with (sh -c ...; exit $?) &
|
---|
| 5 | # here:
|
---|
| 6 | sh -c 'echo REAL_CHILD=$$' &
|
---|
| 7 | echo PARENTS_IDEA_OF_CHILD=$!
|
---|
| 8 | wait # make sure bkgd shell completes
|
---|
| 9 | }
|
---|
| 10 |
|
---|
| 11 | bug | {
|
---|
| 12 | while read varval; do
|
---|
| 13 | eval $varval
|
---|
| 14 | done
|
---|
| 15 | test x"$REAL_CHILD" != x"" \
|
---|
| 16 | && test x"$REAL_CHILD" = x"$PARENTS_IDEA_OF_CHILD"
|
---|
| 17 | echo "Bug detected: $?"
|
---|
| 18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.