Line | |
---|
1 | # make sure that bash really checks the right things when deciding what
|
---|
2 | # constitutes an executable file
|
---|
3 |
|
---|
4 | [ $UID -eq 0 ] && { echo "exec7.sub: the test suite should not be run as root" >&2 ; }
|
---|
5 |
|
---|
6 | : ${TMPDIR:=/tmp}
|
---|
7 |
|
---|
8 | cd $TMPDIR || { echo "cannot cd to $TMPDIR" >&2 ; exit 2; }
|
---|
9 |
|
---|
10 | mkdir testa testb
|
---|
11 |
|
---|
12 | echo 'echo "testa"' > testa/foo
|
---|
13 | echo 'echo "testb"' > testb/foo
|
---|
14 |
|
---|
15 | chmod 655 testa/foo
|
---|
16 | chmod 755 testb/foo
|
---|
17 |
|
---|
18 | PATH=$TMPDIR/testa:$TMPDIR/testb $THIS_SH -c foo
|
---|
19 |
|
---|
20 | rm -rf testa testb
|
---|
Note:
See
TracBrowser
for help on using the repository browser.