Files
bash/tests/rsh2.sub
T
2019-01-07 09:27:52 -05: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