summaryrefslogtreecommitdiff
path: root/tests/rsh1.sub
blob: fdd4ddd96a9bc9bbb861e76fa9818b768b647262 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cd ${TMPDIR:-/tmp}
cp /bin/sh .

PATH=/rbin:/usr/local/rbin
hash -p /bin/rm rm

set -r

BASH_CMDS[x]=/bin/sh

BASH_CMDS[a]="sh"
a -c 'echo hello'

rm -f sh a

exit 0