blob: ea2fd06688b9d25c276b4fbb7b9dec2e7bfbba45 [file] [log] [blame]
Jari Aaltob80f6442004-07-27 13:29:18 +00001# 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