]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/exec7.sub
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / exec7.sub
CommitLineData
b80f6443
JA
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