Files
bash/tests/rsh2.sub
2018-05-22 16:51:07 -04:00

18 lines
167 B
Plaintext

cd ${TMPDIR:-/tmp}
cp /bin/sh .
ln sh a
PATH=/rbin:/usr/local/rbin
hash -p /bin/rm rm
set -r
hash -p /bin/sh sh
hash -p sh a
a -c 'echo hello'
rm -f sh a
exit 0