source: vendor/bash/3.1-p17/tests/exec7.sub

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

bash 3.1

File size: 468 bytes
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
8cd $TMPDIR || { echo "cannot cd to $TMPDIR" >&2 ; exit 2; }
9
10mkdir testa testb
11
12echo 'echo "testa"' > testa/foo
13echo 'echo "testb"' > testb/foo
14
15chmod 655 testa/foo
16chmod 755 testb/foo
17
18PATH=$TMPDIR/testa:$TMPDIR/testb $THIS_SH -c foo
19
20rm -rf testa testb
Note: See TracBrowser for help on using the repository browser.